Created
March 5, 2016 00:22
-
-
Save pr1ntr/408653fc44b4e586c5d4 to your computer and use it in GitHub Desktop.
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
'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