Skip to content

Parallelised node-sass with Backpack support.

License

Notifications You must be signed in to change notification settings

Skyscanner/backpack-node-sass

Repository files navigation

backpack-node-sass

Build Status npm version

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