Sync webpack config changes to production

This commit is contained in:
Yukai Huang 2016-10-14 09:21:25 +08:00
parent ef5524be91
commit 9443a6f996
1 changed files with 6 additions and 2 deletions

View File

@ -7,11 +7,15 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = Object.assign({}, baseConfig, {
plugins: [
new webpack.ProvidePlugin({
'_': 'lodash',
Visibility: "visibilityjs",
Cookies: "js-cookie",
emojify: "emojify.js",
key: "keymaster"
key: "keymaster",
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
"moment": "moment",
"Handlebars": "handlebars"
}),
new ExtractTextPlugin("[name].css"),
new webpack.optimize.CommonsChunkPlugin({