From f405f402c18fe8af7bd037aca27a0422e30b93c2 Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Thu, 16 Jan 2020 01:11:24 +0100 Subject: [PATCH] Fixed #71 by excluding manifest.json from clean --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 4003ed4..427a164 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -53,7 +53,9 @@ var options = { }, plugins: [ // clean the build folder - new CleanWebpackPlugin(), + new CleanWebpackPlugin({ + cleanAfterEveryBuildPatterns: ['!manifest.json'] + }), // expose and write the allowed env vars on the compiled bundle new webpack.EnvironmentPlugin(["NODE_ENV"]), new CopyWebpackPlugin([{