Skip to content

Commit 3bf55b7

Browse files
committed
feat: handle config name
related to NativeScript/nativescript-cli#5554
1 parent 90deb5b commit 3bf55b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/webpack5/src/bin/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ program
5656
env['env'] = options.env;
5757
}
5858

59-
env['watch'] = options.watch;
59+
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'];
6065

6166
const configPath = (() => {
6267
if (options.config) {

0 commit comments

Comments
 (0)