Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

EEGVisEnabled check issue and webpack cache #9159

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion npm-postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 -----'
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ modulePlugins.push(
})
);

if (EEGVisEnabled !== 'true') {
if (EEGVisEnabled !== 'true' && EEGVisEnabled !== '1' ) {
modulePlugins.push(
new IgnorePlugin({
resourceRegExp: /react-series-data-viewer/,
Expand Down Expand Up @@ -235,6 +235,7 @@ let config = [
resolve: resolve,
module: mod,
stats: 'errors-warnings',
cache: false,
},
];

Expand Down
Loading