diff --git a/npm-postinstall.js b/npm-postinstall.js index 7c561ed1618..b4eaba4eaf2 100644 --- a/npm-postinstall.js +++ b/npm-postinstall.js @@ -88,7 +88,7 @@ getConfig.stdout.on('data', (data) => { ); } - if (EEGVisEnabled === 'true') { + if (EEGVisEnabled === 'true' || EEGVisEnabled === '1') { console.info('\n ----- \n >> ' + 'EEG Browser visualization components enabled ' + '\n -----' diff --git a/webpack.config.js b/webpack.config.js index fa328c6f984..a0f7aaca2e0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -90,7 +90,7 @@ modulePlugins.push( }) ); -if (EEGVisEnabled !== 'true') { +if (EEGVisEnabled !== 'true' && EEGVisEnabled !== '1' ) { modulePlugins.push( new IgnorePlugin({ resourceRegExp: /react-series-data-viewer/, @@ -235,6 +235,7 @@ let config = [ resolve: resolve, module: mod, stats: 'errors-warnings', + cache: {type: 'filesystem'}, }, ];