mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Filter unsuported locales
This commit is contained in:
parent
cd61bd8fa0
commit
ea04199c14
@ -1,7 +1,11 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const webpack = require('webpack')
|
||||||
|
|
||||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
|
webpack
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
app: path.join(__dirname, 'src', 'index.tsx')
|
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