Add extendedAPI plugin to access globals
This commit is contained in:
parent
c3995eea5e
commit
42e3fd0282
1 changed files with 5 additions and 2 deletions
|
@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
const HtmlWebpackInjectPreload = require('@principalstudio/html-webpack-inject-preload');
|
||||
const { ExtendedAPIPlugin } = require('webpack');
|
||||
|
||||
let ogImageUrl = process.env.RIOT_OG_IMAGE_URL;
|
||||
if (!ogImageUrl) ogImageUrl = 'https://app.element.io/themes/element/img/logos/opengraph.png';
|
||||
|
@ -437,6 +438,8 @@ module.exports = (env, argv) => {
|
|||
files: [{ match: /.*Inter.*\.woff2$/ }],
|
||||
}),
|
||||
|
||||
new ExtendedAPIPlugin(),
|
||||
|
||||
...additionalPlugins,
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in a new issue