diff options
| author | mokha <mokha@cisco.com> | 2018-09-29 09:52:31 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-09-29 09:52:31 -0600 |
| commit | a6235c463c6b6ac42bcf4ae6568be0687a59538d (patch) | |
| tree | 725a793abdfffacd1bbe5d0f10b2aec74fad2bde /webpack.config.js | |
| parent | fb63e5f976598dd23c0007497c201bd3f194c2ba (diff) | |
clean the target dir before building
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index f6b1a93..05bc7cd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,6 +6,7 @@ const parts = require('./webpack.parts'); const PATHS = { app: path.join(__dirname, "src"), + build: path.join(__dirname, "dist"), }; const commonConfig = merge([ @@ -19,6 +20,7 @@ const commonConfig = merge([ parts.loadJavaScript({ include: PATHS.app }), ]); const productionConfig = merge([ + parts.clean(PATHS.build), parts.generateSourceMaps({ type: 'source-map' }), parts.extractCSS({ use: ["css-loader", parts.autoprefix()] |
