Update webpack

This commit is contained in:
Travis Ralston 2020-03-16 19:24:58 -06:00
parent fe831dc8dd
commit 62a152b68a
1 changed files with 8 additions and 1 deletions

View File

@ -304,7 +304,7 @@ module.exports = (env, argv) => {
// HtmlWebpackPlugin will screw up our formatting like the names // HtmlWebpackPlugin will screw up our formatting like the names
// 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'], excludeChunks: ['mobileguide', 'usercontent', 'inline-widget-wrapper'],
minify: argv.mode === 'production', minify: argv.mode === 'production',
vars: { vars: {
og_image_url: og_image_url, og_image_url: og_image_url,
@ -319,6 +319,13 @@ module.exports = (env, argv) => {
chunks: ['mobileguide'], chunks: ['mobileguide'],
}), }),
// This is an inline widget wrapper, similar to usercontent
new HtmlWebpackPlugin({
template: './src/vector/inline_widget_wrapper/index.html',
filename: 'inline_widget_wrapper/index.html',
chunks: ['inline-widget-wrapper'],
}),
// This is the usercontent sandbox's entry point (separate for iframing) // This is the usercontent sandbox's entry point (separate for iframing)
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: './node_modules/matrix-react-sdk/src/usercontent/index.html', template: './node_modules/matrix-react-sdk/src/usercontent/index.html',