瀏覽代碼

Avoid import moment locales

afc163 8 年之前
父節點
當前提交
1ae2d59c1b
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      webpack.config.js

+ 7 - 0
webpack.config.js

@@ -0,0 +1,7 @@
+const webpack = require('webpack');
+
+module.exports = (webpackConfig) => {
+  // Avoid import all locale file of moment
+  webpackConfig.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
+  return webpackConfig;
+};