diff options
author | 2021-02-06 23:01:15 +0000 | |
---|---|---|
committer | 2021-02-06 23:01:15 +0000 | |
commit | 8aab7a554023084cf725f41f6dd9983e312a2e23 (patch) | |
tree | 4deb83582756497e4b51c243ab03ef7e2dc01559 /webpack.config.js | |
parent | Add license to package.json to avoid yarn complaints (diff) |
Exclude index.html from copy-webpack-plugin
copy-webpack-plugin was creating a build/index.html which html-webpack-plugin then tried to override which caused an error
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 e24c8f1..9d6e73c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -79,7 +79,12 @@ module.exports = { new CopyPlugin({ patterns: [{ from: 'public', - to: '.' + to: '.', + globOptions: { + ignore: [ + '**/index.html' + ] + } }, ], }), new webpack.EnvironmentPlugin({ NODE_ENV: "production", |