Created
November 18, 2018 16:21
-
-
Save charlesBochet/1e17d3e25402eb326922d9f752b294d7 to your computer and use it in GitHub Desktop.
This file contains 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
if (['customers', 'backoffice'].includes(process.env.npm_config_section)) { | |
require(`${__dirname}/webpack.${process.env.npm_config_section}.mix.js`) | |
} else { | |
console.log( | |
'\x1b[41m%s\x1b[0m', | |
'Provide correct --section argument to build command: customers, backoffice' | |
) | |
throw new Error('Provide correct --section argument to build command!') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment