mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 11:43:48 +01:00
Filter unsuported locales
This commit is contained in:
parent
cd61bd8fa0
commit
ea04199c14
@ -1,7 +1,11 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack')
|
||||
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
webpack
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
app: path.join(__dirname, 'src', 'index.tsx')
|
||||
@ -60,6 +64,10 @@ module.exports = {
|
||||
]
|
||||
}
|
||||
}]
|
||||
})
|
||||
]
|
||||
}),
|
||||
// Ignore all locale files of moment.js
|
||||
new webpack.ContextReplacementPlugin(
|
||||
/moment[\/\\]locale$/,
|
||||
/de$|es$|fr$/
|
||||
)]
|
||||
}
|
Loading…
Reference in New Issue
Block a user