Ver código fonte

Avoid import moment locales

afc163 8 anos atrás
pai
commit
1ae2d59c1b
1 arquivos alterados com 7 adições e 0 exclusões
  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;
+};