mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 09:27:04 +02:00
fix(v2): do not remove duplicate properties in during minification (#3768)
This commit is contained in:
parent
7d540a87d7
commit
5acb842c57
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ const postCssRemoveOverriddenCustomProperties = require('./src/remove-overridden
|
||||||
const preset = advancedBasePreset({autoprefixer: {add: true}});
|
const preset = advancedBasePreset({autoprefixer: {add: true}});
|
||||||
|
|
||||||
preset.plugins.unshift(
|
preset.plugins.unshift(
|
||||||
[postCssCombineDuplicatedSelectors, {removeDuplicatedProperties: true}],
|
[postCssCombineDuplicatedSelectors, {removeDuplicatedValues: true}],
|
||||||
[postCssSortMediaQueries],
|
[postCssSortMediaQueries],
|
||||||
[postCssRemoveOverriddenCustomProperties],
|
[postCssRemoveOverriddenCustomProperties],
|
||||||
);
|
);
|
||||||
|
|
|
@ -67,7 +67,7 @@ export function getStyleLoaders(
|
||||||
autoprefixer: {
|
autoprefixer: {
|
||||||
flexbox: 'no-2009',
|
flexbox: 'no-2009',
|
||||||
},
|
},
|
||||||
stage: 3,
|
stage: 4,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue