https://github.com/skyscanner/backpack-node-sass
Parallelised node-sass with Backpack support.
https://github.com/skyscanner/backpack-node-sass
Last synced: 7 months ago
JSON representation
Parallelised node-sass with Backpack support.
- Host: GitHub
- URL: https://github.com/skyscanner/backpack-node-sass
- Owner: Skyscanner
- License: apache-2.0
- Archived: true
- Created: 2018-10-04T11:06:45.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-26T14:50:10.000Z (over 1 year ago)
- Last Synced: 2025-02-13T20:16:03.361Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 877 KB
- Stars: 3
- Watchers: 15
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# backpack-node-sass
[](https://github.com/Skyscanner/backpack-node-sass/actions?query=workflow%3ACI)
[](https://www.npmjs.com/package/backpack-node-sass)`backpack-node-sass` runs several `node-sass` processes in parallel - allowing Sass files to be transpiled faster than using `node-sass` directly.
## Install
```
npm install --save-dev backpack-node-sass
```## Usage
```
> backpack-node-sass
✔ 159 files found
✔ 8 workers spawned
✔ 159/159 compiled
```Add a comment to output files - e.g. a license header or file comment:
**Note:** Ensure your `prefixComment` is plain text and does not already include comments in the form `/* */`.
```
> backpack-node-sass --prefixComment="$(<./license.txt)"
✔ 159 files found
✔ 8 workers spawned
✔ 159/159 compiled
```Watch mode:
```
> backpack-node-sass --watch
✔ Ready for changes
✔ Compiled: packages/bpk-component-button/src/bpk-button.css
✔ Compiled: packages/bpk-component-text/src/BpkText.css
```