Skip to content

Instantly share code, notes, and snippets.

@arqex
Last active April 15, 2018 12:22
Show Gist options
  • Save arqex/a9df76265fb1d14ae036817eba7085a7 to your computer and use it in GitHub Desktop.
Save arqex/a9df76265fb1d14ae036817eba7085a7 to your computer and use it in GitHub Desktop.
DefinePlugin
var webpack = require("webpack");
// ...
{
// ...
plugins: [
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
})
]
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment