Last active
February 19, 2017 11:11
-
-
Save gauravtiwari/175666f46706d5daea5bda758d983adf to your computer and use it in GitHub Desktop.
Production webpack config
This file contains 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
// 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