|
@@ -13,7 +13,9 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
|
|
|
|
|
|
const env = process.env.NODE_ENV === 'testing'
|
|
const env = process.env.NODE_ENV === 'testing'
|
|
|
? require('../config/test.env')
|
|
? require('../config/test.env')
|
|
|
- : require('../config/prod.env')
|
|
|
|
|
|
|
+ : (process.env.NODE_ENV === 'development'
|
|
|
|
|
+ ? require('../config/dev.env')
|
|
|
|
|
+ : require('../config/prod.env'))
|
|
|
|
|
|
|
|
const webpackConfig = merge(baseWebpackConfig, {
|
|
const webpackConfig = merge(baseWebpackConfig, {
|
|
|
module: {
|
|
module: {
|
|
@@ -48,7 +50,7 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|
|
filename: utils.assetsPath('css/[name].[contenthash].css'),
|
|
filename: utils.assetsPath('css/[name].[contenthash].css'),
|
|
|
// Setting the following option to `false` will not extract CSS from codesplit chunks.
|
|
// Setting the following option to `false` will not extract CSS from codesplit chunks.
|
|
|
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
|
|
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
|
|
|
- // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
|
|
|
|
|
|
|
+ // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
|
|
|
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
|
|
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
|
|
|
allChunks: true,
|
|
allChunks: true,
|
|
|
}),
|
|
}),
|