没有错误。
我原本希望样式最终以vendor.css或
结尾我的app.component.ts
@Component({
selector: 'app',
template: require('./app.component.html'),
styles:
[
"../../../../node_modules/primeng/resources/primeng.min.css",
"../../../../node_modules/primeng/resources/themes/south-street/theme.css",
"../../../../node_modules/font-awesome/css/font-awesome.min.css",
//...
],
})
我的Webpack相关内容提到了css:
{ test: /\.css$/, use: [ 'to-string-loader', isDevBuild ? 'css-loader' : 'css-loader?minimize' ] }
为什么加载样式表必须如此复杂。?