Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
Javey committed Aug 9, 2019
1 parent bceb551 commit 9e2ba9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
2 changes: 1 addition & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9e2ba9e

Please sign in to comment.