Skip to content

Commit

Permalink
Update config for html-webpack-plugin
Browse files Browse the repository at this point in the history
Set the cache option to false.

With the update to v4, the plugin otherwise won't re-generate our two
HTML files (popup and options) when in watch mode.
  • Loading branch information
klappradla authored and pmeinhardt committed Apr 15, 2020
1 parent 1121d25 commit 50ceb9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ config.plugin('html').use(HtmlWebpackPlugin, [
collapseWhitespace: true,
removeScriptTypeAttributes: true,
},
cache: false,
},
]);

Expand Down
1 change: 1 addition & 0 deletions webpack.webext.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ config.plugin('options-html').use(HtmlWebpackPlugin, [
collapseWhitespace: true,
removeScriptTypeAttributes: true,
},
cache: false,
},
]);

Expand Down

0 comments on commit 50ceb9b

Please sign in to comment.