backpack-node-sass
runs several node-sass
processes in parallel - allowing Sass files to be transpiled faster than using node-sass
directly.
npm install --save-dev backpack-node-sass
> 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