const HtmlWebpackInlinePlugin = require('html-webpack-inline-plugin');
// 添加时间戳
const Timestamp = new Date().getTime();
module.exports = {
lintOnSave: false,
outputDir: 'dist',
baseUrl: '',
configureWebpack: {
plugins: [
new HtmlWebpackInlinePlugin({
compress: false
})
],
output: {
// 输出重构【模块名称.hash值.时间戳】
filename: `[name].[hash].${Timestamp}.js`,
chunkFilename: `[name].[hash].${Timestamp}.js`
}
},
}
vuecli3.0加版本号
最新推荐文章于 2023-10-09 15:31:04 发布