Skip to content

Commit

Permalink
Merge pull request #17349 from fooness/patch-1
Browse files Browse the repository at this point in the history
Prevent minification of `.html` files
  • Loading branch information
jryans authored May 18, 2021
2 parents 7895fc1 + 10194fe commit 700d894
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ module.exports = (env, argv) => {
// of the themes and which chunks we actually care about.
inject: false,
excludeChunks: ['mobileguide', 'usercontent', 'jitsi'],
minify: argv.mode === 'production',
minify: false,
templateParameters: {
og_image_url: ogImageUrl,
},
Expand All @@ -396,37 +396,37 @@ module.exports = (env, argv) => {
new HtmlWebpackPlugin({
template: './src/vector/jitsi/index.html',
filename: 'jitsi.html',
minify: argv.mode === 'production',
minify: false,
chunks: ['jitsi'],
}),

// This is the mobile guide's entry point (separate for faster mobile loading)
new HtmlWebpackPlugin({
template: './src/vector/mobile_guide/index.html',
filename: 'mobile_guide/index.html',
minify: argv.mode === 'production',
minify: false,
chunks: ['mobileguide'],
}),

// These are the static error pages for when the javascript env is *really unsupported*
new HtmlWebpackPlugin({
template: './src/vector/static/unable-to-load.html',
filename: 'static/unable-to-load.html',
minify: argv.mode === 'production',
minify: false,
chunks: [],
}),
new HtmlWebpackPlugin({
template: './src/vector/static/incompatible-browser.html',
filename: 'static/incompatible-browser.html',
minify: argv.mode === 'production',
minify: false,
chunks: [],
}),

// This is the usercontent sandbox's entry point (separate for iframing)
new HtmlWebpackPlugin({
template: './node_modules/matrix-react-sdk/src/usercontent/index.html',
filename: 'usercontent/index.html',
minify: argv.mode === 'production',
minify: false,
chunks: ['usercontent'],
}),

Expand Down

0 comments on commit 700d894

Please sign in to comment.