ef049ff0 by chenyunhao

修复打包编译CSS文件重复问题

1 parent 5ede2eda
......@@ -54,6 +54,11 @@ module.exports = {
}
})
config.plugin('extract-css').tap(() => [{
filename: `static/css/[name].${Timestamp}.css`,
chunkFilename: `static/css/[name].${Timestamp}.css`
}])
},
configureWebpack: { // webpack 配置
// 修改打包后js文件名
......@@ -62,12 +67,12 @@ module.exports = {
chunkFilename: `static/js/[name].${Timestamp}.js`
},
// 修改打包后css文件名
plugins: [
new MiniCssExtractPlugin({
filename: `static/css/[name].${Timestamp}.css`,
chunkFilename: `static/css/[name].${Timestamp}.css`
})
]
// plugins: [
// new MiniCssExtractPlugin({
// filename: `static/css/[name].${Timestamp}.css`,
// chunkFilename: `static/css/[name].${Timestamp}.css`
// })
// ]
},
// 修改打包后img文件名
// chainWebpack: config => {
......