We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f981b4 + 852fa4e commit 4762ca7Copy full SHA for 4762ca7
craco.config.js
@@ -5,6 +5,13 @@ const BabelRcPlugin = require('@jackwilsdon/craco-use-babelrc');
5
6
const isProd = process.env.APPMODE === "production";
7
8
+function getModeName() {
9
+ const index = process.argv.indexOf('--mode');
10
+ return index === -1 ? '' : process.argv[index + 1] || ''
11
+}
12
+
13
+console.log({buildMode: getModeName()});
14
15
const localIdentName = isProd
16
? "[hash:base64:6]"
17
: "[name]_[local]__[hash:base64:6]";
0 commit comments