mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-12 07:38:33 +02:00
Introduces a new PostCSS plugin, `postcss-discard-duplicates`, which will automatically remove any duplicate CSS rules. All the CSS that is removed shows up again later in the file. This also fixes a bug from `postcss-css-variables`, where media queries are duplicated. Fixes #52158. Props poena. Built from https://develop.svn.wordpress.org/trunk@49980 git-svn-id: http://core.svn.wordpress.org/trunk@49681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
249 B
JavaScript
14 lines
249 B
JavaScript
module.exports = {
|
|
plugins: [
|
|
require('postcss-nested'),
|
|
require('postcss-css-variables')({
|
|
preserve: false,
|
|
preserveAtRulesOrder: true
|
|
}),
|
|
require('postcss-calc')({
|
|
precision: 0
|
|
}),
|
|
require('postcss-discard-duplicates')
|
|
]
|
|
};
|