diff --git a/config/config.js b/config/config.js index fb8c66c..ee0f6cc 100644 --- a/config/config.js +++ b/config/config.js @@ -9,4 +9,6 @@ module.exports = { kpcStylus: path.resolve(__dirname, '../node_modules/kpc/components'), kpcGlobalStylusFile: path.resolve(__dirname, '../node_modules/kpc/styles/themes/default.styl'), + + env: process.env.NODE_ENV === 'production' ? 'production' : 'development', } diff --git a/config/webpack.config.js b/config/webpack.config.js index a661e5e..719750e 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { }, output: { path: resolve('../dist'), - filename: 'static/js/[name].js', + filename: 'static/js/[name].[hash].js', chunkFilename: 'static/js/[name].[hash].js', }, devtool: isProduction ? false : '#inline-source-map',