From 67682ba492b3ee7502a9cb406c9c56d7c5d105b7 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 5 Jan 2019 14:50:43 +0000 Subject: [PATCH] clean build dir contents only to support symlinking build dir --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 83f7450..e3b22b2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -59,7 +59,7 @@ var options = { }, plugins: [ // clean the build folder - new CleanWebpackPlugin(["build"]), + new CleanWebpackPlugin(["build/*"]), // expose and write the allowed env vars on the compiled bundle new webpack.DefinePlugin({ "process.env.NODE_ENV": JSON.stringify(env.NODE_ENV)