From 8aab7a554023084cf725f41f6dd9983e312a2e23 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sat, 6 Feb 2021 23:01:15 +0000 Subject: 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 --- webpack.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3