Bläddra i källkod

Avoid import moment locales

afc163 8 år sedan
förälder
incheckning
1ae2d59c1b
1 ändrade filer med 7 tillägg och 0 borttagningar
  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;
+};