Upgrade html-webpack-plugin to v4.5.2

This commit is contained in:
Germain Souquet 2021-04-22 10:22:52 +01:00
parent 36f8a37bd4
commit 708f6a26b1
4 changed files with 141 additions and 110 deletions

View file

@ -182,8 +182,8 @@ module.exports = (env, argv) => {
loader: 'postcss-loader',
ident: 'postcss',
options: {
sourceMap: true,
plugins: () => [
"sourceMap": true,
"plugins": () => [
// Note that we use significantly fewer plugins on the plain
// CSS parser. If we start to parse plain CSS, we end with all
// kinds of nasty problems (like stylesheets not loading).
@ -210,7 +210,7 @@ module.exports = (env, argv) => {
// up with broken CSS.
require('postcss-preset-env')({stage: 3, browsers: 'last 2 versions'}),
],
parser: "postcss-scss",
"parser": "postcss-scss",
"local-plugins": true,
},
},
@ -231,8 +231,8 @@ module.exports = (env, argv) => {
loader: 'postcss-loader',
ident: 'postcss',
options: {
sourceMap: true,
plugins: () => [
"sourceMap": true,
"plugins": () => [
// Note that we use slightly different plugins for SCSS.
require('postcss-import')(),
@ -249,7 +249,7 @@ module.exports = (env, argv) => {
// up with broken CSS.
require('postcss-preset-env')({stage: 3, browsers: 'last 2 versions'}),
],
parser: "postcss-scss",
"parser": "postcss-scss",
"local-plugins": true,
},
},
@ -343,7 +343,7 @@ module.exports = (env, argv) => {
inject: false,
excludeChunks: ['mobileguide', 'usercontent', 'jitsi'],
minify: argv.mode === 'production',
vars: {
templateParameters: {
og_image_url: ogImageUrl,
},
}),