Fix demo being loaded regardless of ESP_PROD

pull/1/head
cpsdqs 7 years ago
parent f5bbb60468
commit 094727c922
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 2
      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 = ''

Loading…
Cancel
Save