aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-02-06 23:01:15 +0000
committerGravatar Joe Banks <[email protected]>2021-02-06 23:01:15 +0000
commit8aab7a554023084cf725f41f6dd9983e312a2e23 (patch)
tree4deb83582756497e4b51c243ab03ef7e2dc01559 /webpack.config.js
parentAdd 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.js7
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",