const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const Timestamp = new Date().getTime();
configureWebpack: {
plugins :[
new MiniCssExtractPlugin({
// 修改打包后css文件名
filename: `assets/css/[name].${Timestamp}.css`,
chunkFilename: `assets/css/[name].${Timestamp}.css`
})
],
output : { // 输出重构 打包编译后的 文件名称 【模块名称.时间戳】
filename: `assets/js/[name].${Timestamp}.js`,
chunkFilename: `assets/js/[name].${Timestamp}.js`
},
},
Last modification:October 23rd, 2020 at 09:58 am
© The copyright belongs to the author