Skip to content

Commit

Permalink
fix(dev): optimize webpack dev watch
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 29, 2021
1 parent 01bf443 commit 1340c51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/webpack-demo-vanilla-bundle/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ module.exports = ({ production } = {}) => ({
})
]
},
watchOptions: {
ignored: '**/node_modules',
poll: 1000, // Check for changes every second
},
plugins: [
new ProvidePlugin({
'$': 'jquery',
Expand Down
4 changes: 4 additions & 0 deletions packages/vanilla-force-bundle/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ module.exports = ({ production } = {}) => ({
},
],
},
watchOptions: {
ignored: '**/node_modules',
poll: 1000, // Check for changes every second
},
plugins: [
...when(production, new DtsBundleWebpack({
name: 'slicker-bundle',
Expand Down

0 comments on commit 1340c51

Please sign in to comment.