Skip to content

Commit 99c446b

Browse files
authored
Change PostCSS config to allow logical properties (mastodon#31264)
1 parent bb3941f commit 99c446b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"@svgr/webpack": "^5.5.0",
5151
"arrow-key-navigation": "^1.2.0",
5252
"async-mutex": "^0.5.0",
53-
"autoprefixer": "^10.4.14",
5453
"axios": "^1.4.0",
5554
"babel-loader": "^8.3.0",
5655
"babel-plugin-formatjs": "^10.5.1",

postcss.config.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
const postcssPresetEnv = require('postcss-preset-env');
2+
13
/** @type {import('postcss-load-config').Config} */
24
const config = ({ env }) => ({
35
plugins: [
4-
require('postcss-preset-env'),
5-
require('autoprefixer'),
6+
postcssPresetEnv({
7+
features: {
8+
'logical-properties-and-values': false
9+
}
10+
}),
611
env === 'production' ? require('cssnano') : '',
712
],
813
});

yarn.lock

+1-2
Original file line numberDiff line numberDiff line change
@@ -2825,7 +2825,6 @@ __metadata:
28252825
"@typescript-eslint/parser": "npm:^7.0.0"
28262826
arrow-key-navigation: "npm:^1.2.0"
28272827
async-mutex: "npm:^0.5.0"
2828-
autoprefixer: "npm:^10.4.14"
28292828
axios: "npm:^1.4.0"
28302829
babel-jest: "npm:^29.5.0"
28312830
babel-loader: "npm:^8.3.0"
@@ -5118,7 +5117,7 @@ __metadata:
51185117
languageName: node
51195118
linkType: hard
51205119

5121-
"autoprefixer@npm:^10.4.14, autoprefixer@npm:^10.4.19":
5120+
"autoprefixer@npm:^10.4.19":
51225121
version: 10.4.19
51235122
resolution: "autoprefixer@npm:10.4.19"
51245123
dependencies:

0 commit comments

Comments
 (0)