Skip to content

Instantly share code, notes, and snippets.

@gauravtiwari
Last active February 19, 2017 11:11
Show Gist options
  • Save gauravtiwari/175666f46706d5daea5bda758d983adf to your computer and use it in GitHub Desktop.
Save gauravtiwari/175666f46706d5daea5bda758d983adf to your computer and use it in GitHub Desktop.
Production webpack config
// Note: You must restart bin/webpack-watcher for changes to take effect
var webpack = require('webpack')
var merge = require('webpack-merge')
var sharedConfig = require('./shared.js')
module.exports = merge(sharedConfig.config, {
output: { filename: '[name]-[hash].js' },
plugins: [
new webpack.LoaderOptionsPlugin({
minimize: true
})
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment