From 1ae2d59c1b9f6f1891fe04c23c14d4d6644c28a0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 29 Oct 2017 18:33:09 +0800 Subject: [PATCH] Avoid import moment locales --- webpack.config.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 webpack.config.js diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 00000000..98f9d584 --- /dev/null +++ b/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; +}; -- GitLab