We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90deb5b commit 3bf55b7Copy full SHA for 3bf55b7
packages/webpack5/src/bin/index.ts
@@ -56,7 +56,12 @@ program
56
env['env'] = options.env;
57
}
58
59
- env['watch'] = options.watch;
+ env['watch'] ??= options.watch;
60
+
61
+ // if --env.config is passed, we'll set an environment
62
+ // variable to it's value so that the config Util
63
+ // reads from the correct config file.
64
+ process.env.NATIVESCRIPT_CONFIG_NAME ??= env['config'];
65
66
const configPath = (() => {
67
if (options.config) {
0 commit comments