scss-onsave

Run scss command when you save a file

FoxinouFR

2,697

3

0.3.0

MIT

GitHub

scss-onsave

Atom package to run the scss command when you save a .scss or .sass file.

Dependencies

Update 0.3.0

Since version 0.3, the module uses to compile the command installed with npm. For compatibility reasons, we have left the operation with "Sass Ruby gem" by default. Please specify the parameter useNpmSass to true if you use the npm command.

Installation

Use atom package manager to install scss-onsave.

apm install scss-onsave

Configuration file

You need to create a configuration file named .scss-onsave.json at the root of the project.

The content of the .scss-onsave.json file must be an array of objects with the following properties:

Example

Here is an example of a configuration file.

{
	"inputDir": "resources/scss/",
	"outputDir": "public/css/",
	"useNpmSass": true,
	"style":"compressed",
	"sourcemap":"none",
	"showStartup":false,
	"showOutput":false,
	"showError":true
}

Minify JS

You can use the js-onsave package that works the same way for Javascript files.