Sfoglia il codice sorgente

Avoid import moment locales

afc163 8 anni fa
parent
commit
1ae2d59c1b
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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;
+};