Browse Source

Avoid import moment locales

afc163 8 năm trước cách đây
mục cha
commit
1ae2d59c1b
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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;
+};