소스 검색

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;
+};