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, ryelle.
Merges [49800] to the 5.6 branch.
Fixes #52040.

git-svn-id: https://develop.svn.wordpress.org/branches/5.6@49824 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2020-12-17 14:06:00 +00:00
parent c46d274e54
commit 06df0075a0
3 changed files with 5324 additions and 2275 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
module.exports = {
plugins: [
require('postcss-nested'),
require('postcss-css-variables')({
preserve: false,
preserveAtRulesOrder: true
}),
require('postcss-calc')({
precision: 0
})
]
};