Commit de19deb250aa9459b3d33159e43eab17f2aa9ccf
1 parent
4fe1e99e
去缓存
Showing
1 changed file
with
5 additions
and
2 deletions
build/webpack.prod.conf.js
... | ... | @@ -13,6 +13,8 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin') |
13 | 13 | |
14 | 14 | const env = require('../config/prod.env') |
15 | 15 | |
16 | +const Version = new Date().getTime() | |
17 | + | |
16 | 18 | const webpackConfig = merge(baseWebpackConfig, { |
17 | 19 | module: { |
18 | 20 | rules: utils.styleLoaders({ |
... | ... | @@ -25,8 +27,9 @@ const webpackConfig = merge(baseWebpackConfig, { |
25 | 27 | output: { |
26 | 28 | publicPath: './', |
27 | 29 | path: config.build.assetsRoot, |
28 | - filename: utils.assetsPath('js/[name].[chunkhash].js'), | |
29 | - chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') | |
30 | + filename: utils.assetsPath('js/[name].[chunkhash].'+Version+'js'), | |
31 | + chunkFilename: utils.assetsPath('js/[id].[chunkhash].'+Version+'js') | |
32 | + | |
30 | 33 | }, |
31 | 34 | plugins: [ |
32 | 35 | // http://vuejs.github.io/vue-loader/en/workflow/production.html | ... | ... |