Last active
March 2, 2026 19:54
-
-
Save Goodwine/3759bf6dd78a180d6153b752a05d00be to your computer and use it in GitHub Desktop.
Run the following: `npm install && npm run test`. This should be in a directory next to your `cssnano` repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @for $i from 1 through 20000 { | |
| .foo-#{$i} { | |
| top: 0; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "playground", | |
| "type": "commonjs", | |
| "scripts": { | |
| "build_sass": "sass example.scss > out.css", | |
| "minify": "postcss out.css > out_small.css", | |
| "test": "npm run build_sass && npm run minify" | |
| }, | |
| "devDependencies": { | |
| "cssnano": "file:../cssnano/packages/cssnano", | |
| "postcss": "8.5.6", | |
| "postcss-cli": "11.0.1", | |
| "sass": "1.97.3" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| plugins: [ | |
| require("cssnano")({ | |
| preset: "default", | |
| }), | |
| ], | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment