Commit 6283981078c91d60e144abdb3db10a7b62c65302
1 parent
65716baa
跳转
Showing
1 changed file
with
4 additions
and
2 deletions
build/webpack.prod.conf.js
... | ... | @@ -11,6 +11,8 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin') |
11 | 11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') |
12 | 12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin') |
13 | 13 | |
14 | + | |
15 | + | |
14 | 16 | const env = require('../config/prod.env') |
15 | 17 | const Version = new Date().getTime() |
16 | 18 | const webpackConfig = merge(baseWebpackConfig, { |
... | ... | @@ -25,8 +27,8 @@ const webpackConfig = merge(baseWebpackConfig, { |
25 | 27 | output: { |
26 | 28 | publicPath: './', |
27 | 29 | path: config.build.assetsRoot, |
28 | - filename: utils.assetsPath('js/[name].[chunkhash].'+Version+'.js'), | |
29 | - chunkFilename: utils.assetsPath('js/[id].[chunkhash].'+Version+'.js') | |
30 | + filename: utils.assetsPath('js/[name].[chunkhash].'+Version+'js'), | |
31 | + chunkFilename: utils.assetsPath('js/[id].[chunkhash].'+Version+'js') | |
30 | 32 | }, |
31 | 33 | plugins: [ |
32 | 34 | // http://vuejs.github.io/vue-loader/en/workflow/production.html | ... | ... |