Skip to content

Instantly share code, notes, and snippets.

@Goodwine
Last active March 2, 2026 19:54
Show Gist options
  • Select an option

  • Save Goodwine/3759bf6dd78a180d6153b752a05d00be to your computer and use it in GitHub Desktop.

Select an option

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
@for $i from 1 through 20000 {
.foo-#{$i} {
top: 0;
}
}
{
"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"
}
}
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