Created
July 6, 2017 17:34
-
-
Save jakwuh/754dbd9a66cbcea497dfc4c98ae4963d to your computer and use it in GitHub Desktop.
Webpack+React production config
This file contains hidden or 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
let {resolve} = require('path'); | |
let webpack = require('webpack'); | |
module.exports = { | |
entry: resolve('index.js'), | |
output: { | |
path: resolve('dist'), | |
filename: 'bundle.js' | |
}, | |
plugins: [ | |
new webpack.DefinePlugin({ | |
'process.env': { | |
'NODE_ENV': JSON.stringify('production') | |
} | |
}) | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment