Commit 85315eb9 by tangjiale

打包刷新资源

parent 7292bfa7
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 15:07:57
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-24 10:13:12
* @LastEditTime: 2022-06-27 11:33:05
*/
const envMap = {
'dev': {
......@@ -30,6 +30,8 @@ const ENV_SCRIPT = {
]
};
const Timestamp = new Date().getTime()
module.exports = {
mode: 'spa',
head: {
......@@ -83,6 +85,8 @@ module.exports = {
// require('autoprefixer')
],
extend (config, ctx) {
config.output.filename = `js/[name].${Timestamp}.js` // 每次构建打包时给文件名加上时间戳,保证版本更新时与上版本文件名不一样
config.output.chunkFilename = `js/[name].${Timestamp}.js`
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment