diff options
| author | Haishan <[email protected]> | 2019-06-12 19:49:11 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-06-20 00:37:40 +0800 |
| commit | 519aa2f59eeaebfcb9c872649166cec0d027d93f (patch) | |
| tree | 8ace21b663a8c3acdaf7671a01be46d76f1f0de7 | |
| parent | 067c108f1bbf75bf52ee0f8366a4c426c8ace2cb (diff) | |
build: ignore locales in moment
note: chart.js requires moment
| -rw-r--r-- | webpack.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index d7e29ba..c832259 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -142,6 +142,9 @@ const plugins = [ definePlugin, new CopyPlugin([{ from: 'assets/*', flatten: true }]), new CleanWebpackPlugin(), + // chart.js requires moment + // and we don't need locale stuff in moment + new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), isDev ? false : new webpack.HashedModuleIdsPlugin(), isDev ? false : cssExtractPlugin, isDev ? false : bundleAnalyzerPlugin |
