summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/react/config-overrides.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/react/config-overrides.js')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/react/config-overrides.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/react/config-overrides.js b/devtools/client/debugger/test/mochitest/examples/react/config-overrides.js
new file mode 100644
index 0000000000..4cd67ce673
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/react/config-overrides.js
@@ -0,0 +1,16 @@
+// config-overrides.js
+module.exports = {
+ webpack: function(config, env) {
+ if (env === "production") {
+ //JS Overrides
+ config.output.filename = '[name].js';
+ config.output.chunkFilename = '[name].chunk.js';
+ }
+
+ // remove minifier
+ const index = config.plugins.findIndex(o => o.options && o.options.compress)
+ config.plugins.splice(index,1)
+
+ return config;
+ }
+};