问题描述
我需要使用@ nrwl / web:package获取库的构建版本的css文件,我正在创建的库没有index.html,它只是普通的TS,但是当我尝试使用web:package进行编译,未显示CSS文件,在该库的构建中,我具有:
...any().custom( isOneOf(allowedValues) );
在webpack.config.js中,我有:
{
"build": {
"builder": "@nrwl/web:package","options": {
"outputPath": "libs/data-table/dist","tsConfig": "libs/data-table/tsconfig.lib.json","project": "libs/data-table/package.json","entryFile": "libs/data-table/src/index.tsx","external": [ "react","react-dom" ],"styles": [ "libs/data-table/src/lib/index.css","libs/data-table/src/lib/responsive.scss" ],"webpackConfig": "libs/data-table/webpack.config.js","assets": [
{
"glob": "README.md","input": ".","output": "."
}
]
},"configurations": {
"production": {
"optimization": true,"outputHashing": "all","sourceMap": false,"extractCss": true,"namedChunks": false,"extractLicenses": true,"vendorChunk": false,"budgets": [
{
"type": "initial","maximumWarning": "2mb","maximumError": "5mb"
}
]
}
}
}
}
但是由于某种原因,似乎无法读取。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)