Skip to content

Commit

Permalink
Allow using local as environment name in config file.
Browse files Browse the repository at this point in the history
i.e. config.local.js
  • Loading branch information
cossssmin committed Feb 4, 2020
1 parent 6812561 commit 45b5ccd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/generators/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ module.exports = {
try {
baseConfig = require(path.resolve(process.cwd(), './config'))
} catch (error) {
throw error
try {
baseConfig = require(path.resolve(process.cwd(), './config.local'))
} catch (error) {
throw error
}
}

if (env) {
Expand Down

0 comments on commit 45b5ccd

Please sign in to comment.