diff options
author | ditoaugusta <dt_ap@ymail.com> | 2020-03-27 18:30:47 +0700 |
---|---|---|
committer | ditoaugusta <dt_ap@ymail.com> | 2020-03-27 18:30:47 +0700 |
commit | 114604e02eea84d3de78fb340f1c91c72b46e904 (patch) | |
tree | 8ef061009cd1823ccadd06d28113c254dde0ec5a /modern/craco.config.js | |
parent | 8bef4f04c2b0b203450fe5753b6109a0b0d04e82 (diff) | |
parent | 79c36b9a84623fb99db0ab71cc9a31391f06489e (diff) | |
download | trackermap-web-114604e02eea84d3de78fb340f1c91c72b46e904.tar.gz trackermap-web-114604e02eea84d3de78fb340f1c91c72b46e904.tar.bz2 trackermap-web-114604e02eea84d3de78fb340f1c91c72b46e904.zip |
Merge branch 'master' of https://github.com/traccar/traccar-web into experimental/hooks
Diffstat (limited to 'modern/craco.config.js')
-rw-r--r-- | modern/craco.config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/craco.config.js b/modern/craco.config.js new file mode 100644 index 00000000..3e5d98e9 --- /dev/null +++ b/modern/craco.config.js @@ -0,0 +1,12 @@ +module.exports = { + webpack: { + configure: webpackConfig => { + const scopePluginIndex = webpackConfig.resolve.plugins.findIndex( + ({ constructor }) => constructor && constructor.name === 'ModuleScopePlugin' + ); + + webpackConfig.resolve.plugins.splice(scopePluginIndex, 1); + return webpackConfig; + } + } +}; |