Quellcode durchsuchen

Avoid import moment locales

afc163 vor 8 Jahren
Ursprung
Commit
1ae2d59c1b
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  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;
+};