New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

all-that-sass

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-that-sass

A npm module that watches folders and compiles SCSS

1.0.9
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

all-that-sass

A npm module that watches folders with SCSS files and compiles them into CSS.

Usage

You will probably need to specify:

  • a folder to watch for changes to scss files
  • a scss file that is your input (the main file where you include all your other scss-files)
  • a css file that is your output

You can also specify whether you want to:

  • report compile errors in the console
  • report successful compiles in the console

And change the output style of your compiled css.

Default settings

These are the default settings:

{
  watch: './sass',
  input: './sass/style.scss',
  output: './www/style.css',
  reportErrors: true,
  reportCompiles: false,
  outputStyle: 'expanded'
}
Usage with all settings at default

If you would like to use all the defaults you would simple call all-that-sass like this from your node.js app:

require('all-that-sass')();

to start watching a folder and compiling scss to css.

Usage with your own settings

Most probably you might want to change a few settings. For example, the path to the folder to watch might be ./scss, the path to the main scss file might be ./scss/main.scss and you might want to output the compiled scss to the path ./public/style.css...

In that case you would call all-that-sass like this:

require('./all-that-sass')({
  watch:  './scss',
  input:  './scss/main.scss',
  output: './public/style.css',
});

Happy compiling!

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts