Skip to content

Instantly share code, notes, and snippets.

@pr1ntr
Created March 5, 2016 00:22
Show Gist options
  • Save pr1ntr/408653fc44b4e586c5d4 to your computer and use it in GitHub Desktop.
Save pr1ntr/408653fc44b4e586c5d4 to your computer and use it in GitHub Desktop.
'use strict';
let webpack = require('webpack');
let shared = require('./webpack.config.shared');
module.exports = {
entry: shared.entry,
output: shared.output,
externals: shared.external,
module: {
//postLoaders: shared.postLoaders,
loaders: shared.loaders
},
postcss: shared.postCSS,
plugins: [
new webpack.optimize.CommonsChunkPlugin(/* chunkName= */'vendor', /* filename= */'app.vendor.js'),
new webpack.optimize.UglifyJsPlugin({
compress: true,
minimize: true,
drop_console: true,
mangle: {
except: shared.vendors
},
exclude: [
/joi\/lib\/any\.js/i
]
}
)
],
target: 'web',
node: shared.node
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment