Explorar o código

Avoid import moment locales

afc163 %!s(int64=8) %!d(string=hai) anos
pai
achega
1ae2d59c1b
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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;
+};