Created
January 10, 2016 20:51
-
-
Save MoOx/c718e512ff43086ef275 to your computer and use it in GitHub Desktop.
Example of conditional conf with spread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DEV = process.argv.includes("--dev") | |
const PROD = process.argv.includes("--production") | |
export default { | |
common: "stuff", | |
...DEV && { | |
just: "for dev" | |
}, | |
...PROD && { | |
just: "for prod", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment