Config moment webpack ProvidePlugin

This commit is contained in:
Yukai Huang 2016-10-13 16:25:04 +08:00
parent f4f2497d23
commit 229b947b09

View file

@ -12,7 +12,8 @@ module.exports = {
key: "keymaster", key: "keymaster",
$: "jquery", $: "jquery",
jQuery: "jquery", jQuery: "jquery",
"window.jQuery": "jquery" "window.jQuery": "jquery",
"moment": "moment"
}), }),
new ExtractTextPlugin("[name].css"), new ExtractTextPlugin("[name].css"),
new webpack.optimize.CommonsChunkPlugin({ new webpack.optimize.CommonsChunkPlugin({