Skip to content

Instantly share code, notes, and snippets.

@charlesBochet
Created November 18, 2018 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlesBochet/1e17d3e25402eb326922d9f752b294d7 to your computer and use it in GitHub Desktop.
Save charlesBochet/1e17d3e25402eb326922d9f752b294d7 to your computer and use it in GitHub Desktop.
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