From 0dd77ed1e765ea480395c960e57b178e2c424773 Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Thu, 21 Mar 2024 18:57:52 -0400 Subject: [PATCH 1/2] EEGVisEnabled check issue and webpack cache --- npm-postinstall.js | 2 +- webpack.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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..89d3aa88602 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: false, }, ]; From 94974f7c24dd287de8300a761e0b33ebb021a06b Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Tue, 26 Mar 2024 15:07:59 -0400 Subject: [PATCH 2/2] Change cache strategy --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 89d3aa88602..a0f7aaca2e0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -235,7 +235,7 @@ let config = [ resolve: resolve, module: mod, stats: 'errors-warnings', - cache: false, + cache: {type: 'filesystem'}, }, ];