mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Twenty Twenty-One: Bring back PostCSS config.
Twenty Twenty-One uses PostCSS to convert the custom properties for Internet Explorer. Without a config file, the postcss command does nothing, causing issues in IE. This brings back the config from GitHub, which replaces all custom properties with the default values. Props t-p, poena. Fixes #52040. git-svn-id: https://develop.svn.wordpress.org/trunk@49800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6bd675869c
commit
8eda4984e1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
12
src/wp-content/themes/twentytwentyone/postcss.config.js
Normal file
12
src/wp-content/themes/twentytwentyone/postcss.config.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('postcss-nested'),
|
||||
require('postcss-css-variables')({
|
||||
preserve: false,
|
||||
preserveAtRulesOrder: true
|
||||
}),
|
||||
require('postcss-calc')({
|
||||
precision: 0
|
||||
})
|
||||
]
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user