diff options
author | sualko <klaus@jsxc.org> | 2019-01-19 03:52:55 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2019-01-19 03:52:55 +0300 |
commit | 2972bf73d417198c3b0056415cd9e74b548bfa9c (patch) | |
tree | 477aecc2828939a184c1f31bf82e94d4a1d44d6a /webpack.config.js | |
parent | 63f444f3034c95c63d80813be7a2126186b42dc5 (diff) |
chore: change watch options for dev server
some directories and files are now ignored and will no longer trigger a rebuild
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index be9bc75d..8d2a9034 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -169,7 +169,12 @@ let config = { }, watchOptions: { aggregateTimeout: 1300, - ignored: "/dist/" + ignored: [ + path.resolve(__dirname, 'dist'), + path.resolve(__dirname, 'node_modules'), + path.resolve(__dirname, '.git'), + '**/*.swp', + ] } }, }; |