From 229b947b093e0f88b587a00cfd256b38979c356e Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Thu, 13 Oct 2016 16:25:04 +0800 Subject: [PATCH] Config moment webpack ProvidePlugin --- webpackBaseConfig.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 51eb2ad..072ef7b 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -12,7 +12,8 @@ module.exports = { key: "keymaster", $: "jquery", jQuery: "jquery", - "window.jQuery": "jquery" + "window.jQuery": "jquery", + "moment": "moment" }), new ExtractTextPlugin("[name].css"), new webpack.optimize.CommonsChunkPlugin({