From 094727c92237b2f2ba076af50b73c1633e26b610 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Sun, 8 Oct 2017 14:29:45 +0200 Subject: [PATCH] Fix demo being loaded regardless of ESP_PROD --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 29ba3f4..d1c3104 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,7 +10,7 @@ let devtool = 'source-map' if (process.env.ESP_PROD) { // ignore demo - plugins.push(new webpack.IgnorePlugin(/\.\/demo(?:\.js)?$/)) + plugins.push(new webpack.IgnorePlugin(/(term|\.)\/demo(?:\.js)?$/)) // no source maps devtool = ''