fix(cssnano-preset): disable CSS counter minification

This commit is contained in:
YDKK 2025-10-16 10:36:32 +00:00
parent 2a10b5453f
commit 7bc2489832
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,8 @@ const preset: typeof advancedBasePreset = function preset(opts) {
const advancedPreset = advancedBasePreset({
autoprefixer: {add: false},
discardComments: {removeAll: true},
/* cSpell:ignore Idents */
reduceIdents: {counter: false},
/* cSpell:ignore zindex */
zindex: false,
...opts,

View File

@ -226,6 +226,13 @@ function PageLayout(props) {
}
```
```jsx showLineNumbers=4
function PageLayout(props) {
// highlight-next-line
return <Layout title="Awesome Docusaurus page" description="Test Test Test Test Test Test Test Test Test Test Test Test Test Test ">;
}
```
```jsx {1,3,6} showLineNumbers
function PageLayout(props) {
console.log(