mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #17349 from fooness/patch-1
Prevent minification of `.html` files
This commit is contained in:
commit
700d894324
@ -386,7 +386,7 @@ module.exports = (env, argv) => {
|
|||||||
// of the themes and which chunks we actually care about.
|
// of the themes and which chunks we actually care about.
|
||||||
inject: false,
|
inject: false,
|
||||||
excludeChunks: ['mobileguide', 'usercontent', 'jitsi'],
|
excludeChunks: ['mobileguide', 'usercontent', 'jitsi'],
|
||||||
minify: argv.mode === 'production',
|
minify: false,
|
||||||
templateParameters: {
|
templateParameters: {
|
||||||
og_image_url: ogImageUrl,
|
og_image_url: ogImageUrl,
|
||||||
},
|
},
|
||||||
@ -396,7 +396,7 @@ module.exports = (env, argv) => {
|
|||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './src/vector/jitsi/index.html',
|
template: './src/vector/jitsi/index.html',
|
||||||
filename: 'jitsi.html',
|
filename: 'jitsi.html',
|
||||||
minify: argv.mode === 'production',
|
minify: false,
|
||||||
chunks: ['jitsi'],
|
chunks: ['jitsi'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@ -404,7 +404,7 @@ module.exports = (env, argv) => {
|
|||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './src/vector/mobile_guide/index.html',
|
template: './src/vector/mobile_guide/index.html',
|
||||||
filename: 'mobile_guide/index.html',
|
filename: 'mobile_guide/index.html',
|
||||||
minify: argv.mode === 'production',
|
minify: false,
|
||||||
chunks: ['mobileguide'],
|
chunks: ['mobileguide'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@ -412,13 +412,13 @@ module.exports = (env, argv) => {
|
|||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './src/vector/static/unable-to-load.html',
|
template: './src/vector/static/unable-to-load.html',
|
||||||
filename: 'static/unable-to-load.html',
|
filename: 'static/unable-to-load.html',
|
||||||
minify: argv.mode === 'production',
|
minify: false,
|
||||||
chunks: [],
|
chunks: [],
|
||||||
}),
|
}),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './src/vector/static/incompatible-browser.html',
|
template: './src/vector/static/incompatible-browser.html',
|
||||||
filename: 'static/incompatible-browser.html',
|
filename: 'static/incompatible-browser.html',
|
||||||
minify: argv.mode === 'production',
|
minify: false,
|
||||||
chunks: [],
|
chunks: [],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ module.exports = (env, argv) => {
|
|||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './node_modules/matrix-react-sdk/src/usercontent/index.html',
|
template: './node_modules/matrix-react-sdk/src/usercontent/index.html',
|
||||||
filename: 'usercontent/index.html',
|
filename: 'usercontent/index.html',
|
||||||
minify: argv.mode === 'production',
|
minify: false,
|
||||||
chunks: ['usercontent'],
|
chunks: ['usercontent'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user