mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
Fix mojibake (#7073) Add charset preamble to generated css
This commit is contained in:
parent
28e4453218
commit
af4ef8c0ba
@ -110,6 +110,12 @@ const config = {
|
|||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: '[name].css',
|
filename: '[name].css',
|
||||||
chunkFilename: '[name].css'
|
chunkFilename: '[name].css'
|
||||||
|
}),
|
||||||
|
// Add a UTF-8 BOM to CSS output to avoid random mojibake
|
||||||
|
new webpack.BannerPlugin({
|
||||||
|
test: /.*Theme\.css$/,
|
||||||
|
raw: true,
|
||||||
|
banner: '@charset "UTF-8";',
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
|
Loading…
Reference in New Issue
Block a user