Skip to content

Instantly share code, notes, and snippets.

@dutchmartin
Created December 24, 2018 10:58
Show Gist options
  • Save dutchmartin/f190b020fc263bbbc629d6446a7b4043 to your computer and use it in GitHub Desktop.
Save dutchmartin/f190b020fc263bbbc629d6446a7b4043 to your computer and use it in GitHub Desktop.
Webpack 4 base config
module.exports = {
mode: "production",
devtool: false,
entry: {
},
output: {
},
optimization: {
minimize: true
},
plugins: [
new webpack.DefinePlugin( {
"process.env": {
NODE_ENV: JSON.stringify( "production" ),
}
} ),
new CaseSensitivePathsPlugin(),
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment