build: ignore locales in moment

note: chart.js requires moment
This commit is contained in:
Haishan 2019-06-12 19:49:11 +08:00
parent 067c108f1b
commit 519aa2f59e

View file

@ -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