Skip to content

Commit 5c06db9

Browse files
vince83110weaverryan
authored andcommitted
Add alias prod for production command
1 parent 656263d commit 5c06db9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/encore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (runtimeConfig.useDevServer) {
6060
}
6161

6262
function showUsageInstructions() {
63-
const validCommands = ['dev', 'production', 'dev-server'];
63+
const validCommands = ['dev', 'prod', 'production', 'dev-server'];
6464

6565
console.log(`usage ${chalk.green('encore')} [${ validCommands.map(command => chalk.green(command)).join('|') }]`);
6666
console.log();

lib/config/parse-runtime.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = function(argv, cwd) {
3434
runtimeConfig.verbose = true;
3535
break;
3636
case 'production':
37+
case 'prod':
3738
runtimeConfig.isValidCommand = true;
3839
runtimeConfig.environment = 'production';
3940
runtimeConfig.verbose = false;

0 commit comments

Comments
 (0)