Filter unsuported locales

This commit is contained in:
Paulo Gustavo Veiga 2021-02-16 12:01:32 -08:00
parent cd61bd8fa0
commit ea04199c14

View File

@ -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$/
)]
}