Allow Element Web to use cascade layers
This upgrades a number of PostCSS dependencies so that we can make use of cascade layers, a feature which I plan to use for theming of Compound: https://compound.element.io/?path=/docs/develop-theming--docs
This commit is contained in:
parent
c64af5671a
commit
7622dd35c5
3 changed files with 588 additions and 492 deletions
|
@ -179,13 +179,13 @@
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.31",
|
||||||
"postcss-easings": "^2.0.0",
|
"postcss-easings": "^2.0.0",
|
||||||
"postcss-hexrgba": "2.0.1",
|
"postcss-hexrgba": "2.0.1",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^16.0.0",
|
||||||
"postcss-loader": "^3.0.0",
|
"postcss-loader": "^8.1.0",
|
||||||
"postcss-mixins": "^6.2.3",
|
"postcss-mixins": "^6.2.3",
|
||||||
"postcss-nested": "^4.2.3",
|
"postcss-nested": "^4.2.3",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^9.3.0",
|
||||||
"postcss-scss": "^4.0.4",
|
"postcss-scss": "^4.0.4",
|
||||||
"postcss-simple-vars": "^5.0.2",
|
"postcss-simple-vars": "^7.0.1",
|
||||||
"prettier": "3.2.4",
|
"prettier": "3.2.4",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"proxy-agent": "^6.3.0",
|
"proxy-agent": "^6.3.0",
|
||||||
|
|
|
@ -330,8 +330,9 @@ module.exports = (env, argv) => {
|
||||||
loader: "postcss-loader",
|
loader: "postcss-loader",
|
||||||
ident: "postcss",
|
ident: "postcss",
|
||||||
options: {
|
options: {
|
||||||
"sourceMap": true,
|
sourceMap: true,
|
||||||
"plugins": () => [
|
postcssOptions: () => ({
|
||||||
|
"plugins": [
|
||||||
// Note that we use significantly fewer plugins on the plain
|
// Note that we use significantly fewer plugins on the plain
|
||||||
// CSS parser. If we start to parse plain CSS, we end with all
|
// CSS parser. If we start to parse plain CSS, we end with all
|
||||||
// kinds of nasty problems (like stylesheets not loading).
|
// kinds of nasty problems (like stylesheets not loading).
|
||||||
|
@ -359,6 +360,7 @@ module.exports = (env, argv) => {
|
||||||
],
|
],
|
||||||
"parser": "postcss-scss",
|
"parser": "postcss-scss",
|
||||||
"local-plugins": true,
|
"local-plugins": true,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -413,8 +415,9 @@ module.exports = (env, argv) => {
|
||||||
loader: "postcss-loader",
|
loader: "postcss-loader",
|
||||||
ident: "postcss",
|
ident: "postcss",
|
||||||
options: {
|
options: {
|
||||||
"sourceMap": true,
|
sourceMap: true,
|
||||||
"plugins": () => [
|
postcssOptions: () => ({
|
||||||
|
"plugins": [
|
||||||
// Note that we use slightly different plugins for PostCSS.
|
// Note that we use slightly different plugins for PostCSS.
|
||||||
require("postcss-import")(),
|
require("postcss-import")(),
|
||||||
require("postcss-mixins")(),
|
require("postcss-mixins")(),
|
||||||
|
@ -429,6 +432,7 @@ module.exports = (env, argv) => {
|
||||||
],
|
],
|
||||||
"parser": "postcss-scss",
|
"parser": "postcss-scss",
|
||||||
"local-plugins": true,
|
"local-plugins": true,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue