Skip to content

Commit

Permalink
Webpack: Fix watch on json and php files (#34024)
Browse files Browse the repository at this point in the history
Only ignore watch on files in the src folder that are handled by the build script.

This fixes a bug where `.json` and `.php` files in blocks isn't copied in development mode.
  • Loading branch information
Petter Walbø Johnsgård authored Aug 12, 2021
1 parent 0acd6c7 commit 32f4af8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/webpack/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ const baseConfig = {
] ),
},
watchOptions: {
ignored: [ '**/node_modules', '**/packages/*/src' ],
ignored: [
'**/node_modules',
'**/packages/*/src/**/*.{js,ts,tsx,scss}',
],
aggregateTimeout: 500,
},
devtool,
Expand Down

0 comments on commit 32f4af8

Please sign in to comment.