Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandre-chapelle/scss-empty-selectors-cleaner
Cleaning your SCSS code has never been easier
https://github.com/alexandre-chapelle/scss-empty-selectors-cleaner
bun css js sass scss
Last synced: about 1 month ago
JSON representation
Cleaning your SCSS code has never been easier
- Host: GitHub
- URL: https://github.com/alexandre-chapelle/scss-empty-selectors-cleaner
- Owner: Alexandre-Chapelle
- Created: 2024-12-03T22:58:52.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-03T23:42:23.000Z (about 1 month ago)
- Last Synced: 2024-12-04T00:18:36.787Z (about 1 month ago)
- Topics: bun, css, js, sass, scss
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# SCSS Empty Selectors Cleaner
## Before Usage:
```scss
// file.scss
.selector {
.selector2 {
.selector3 {
}
}
}.other_selector {
color: red;
}
```## After Usage:
```scss
// file.scss
.other_selector {
color: red;
}
```## To Install Dependencies:
```bash
bun install
```## To Run:
```bash
bun run index.ts
```## FAQ:
**Q:** Does it work with nested folders?
**A:** Yes, it does.**Q:** Does it work with nested selectors?
**A:** Yes, it does.**Q:** Can I use it without having to install dependencies?
**A:** Yes, please view the releases section.**Q:** Does it create backups just in case?
**A:** Yes, it does. After running the executable or via `npm run start`, you will be prompted:
`Do you want to create backups for each modified file? (Y/n)`## Contributing
Please see the Contributing guideline.