build: ignore locales in moment
note: chart.js requires moment
This commit is contained in:
parent
067c108f1b
commit
519aa2f59e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue