@spicycoding/sass-compiler
v1.1.1
Published
This package compiles your (for example) app.scss file and bundles it to one CSS file.
Downloads
7
Maintainers
Readme
Sass compiler
This bundler has four main functionalities:
- Compile SASS code (including Tailwind version 1 and above!) and write it to the destination folder (./public/dist/ in our example)
- Watch for changes in the target folder (./resources/assets/sass/ in our example)
- Minifies code when using the --minify flag
- Copies assets the destination folder when using the assetImporter command
How to use
Install using NPM: npm install @spicycoding/sass-compiler
Install using Yarn: yarn add @spicycoding/sass-compiler
Import assets to the destination foldernode ./node_modules/@spicycoding/sass-compiler/src/cli.js assetImporter --destination ./public/dist/ --import-assets ./node_modules/@fortawesome/fontawesome-free/webfonts/
Developmentnode ./node_modules/@spicycoding/sass-compiler/src/cli.js build --target ./resources/assets/sass/app.scss --destination ./public/dist/app.css --configuration ./tailwind.js
Watchernode ./node_modules/@spicycoding/sass-compiler/src/cli.js watch --target ./resources/assets/sass/app.scss --destination ./public/dist/app.css --configuration ./tailwind.js
Productionnode ./node_modules/@spicycoding/sass-compiler/src/cli.js build --target ./resources/assets/sass/app.scss --destination ./public/dist/app.css --configuration ./tailwind.js --minify