|
@@ -47,7 +47,7 @@ module.exports={
|
|
|
loader: 'css-loader',
|
|
|
options: {
|
|
|
// 重点:将 CSS 输出到对应入口的 css 目录
|
|
|
- outputPath: '[name]/css/'
|
|
|
+ outputPath: 'css/'
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -112,7 +112,7 @@ module.exports={
|
|
|
}),
|
|
|
new MiniCssExtractPlugin({
|
|
|
// CSS 输出到对应入口的 css 目录
|
|
|
- filename: '[name]/css/[name].[contenthash:8].css'
|
|
|
+ filename: './style/[name].[contenthash:8].css'
|
|
|
}),
|
|
|
],
|
|
|
// 优化配置(如代码拆分)
|