Skip to content

Instantly share code, notes, and snippets.

@squadwuschel
Created July 7, 2017 20:48
Show Gist options
  • Save squadwuschel/d421c8e4b5360cab8dbe8ab01e5f0b19 to your computer and use it in GitHub Desktop.
Save squadwuschel/d421c8e4b5360cab8dbe8ab01e5f0b19 to your computer and use it in GitHub Desktop.
webpack.prod.js erweitern und die environment Variable erweitern
...
module.exports = function (env) {
console.log("Übergabe Parameter")
console.log(env);
var environment = { env : ENV };
if(env !== undefined && env["appname"] !== undefined) {
environment.appname = env.appname;
}
return webpackMerge(commonConfig(environment), {
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment