mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-29 23:09:44 +01:00
d8bbb335cb
Use the postcss-merge-rules package when building TT1 stylesheets to reduce duplicate code in production CSS. Props SergeyBiryukov, ryelle, Shaharyar10, shital-patel, mukesh27, poena. Fixes #53605. Built from https://develop.svn.wordpress.org/trunk@52238 git-svn-id: http://core.svn.wordpress.org/trunk@51830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
15 lines
283 B
JavaScript
15 lines
283 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'),
|
|
require('postcss-merge-rules')
|
|
]
|
|
};
|