Skip to content

Instantly share code, notes, and snippets.

Last active Feb 19, 2017
What would you like to do?
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