Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
/ scss-onsave Public archive

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

License

Notifications You must be signed in to change notification settings

FoxinouFR/scss-onsave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • inputDir: The source directory. The path is relative to .scss-onsave.json.
  • outputDir: The destination directory. The path is relative to .scss-onsave.json.
  • useNpmSass (default to false): This setting allows users with Rugy-sass installed to continue using this package. Set to true in the case of an installation with NPM.
  • style (default to "compressed"): Sets the style of the CSS output. The value must be: expanded, compressed.
  • sourcemap (default to "none"): Controls how sourcemaps are generated. The value must be: none, relative, absolute.
  • showStartup (default to false): A boolean indicating whether a notification at startup of compilation should be displayed or not.
  • showOutput (default to false): A boolean indicating whether the output stream should be displayed or not.
  • showError (default to true): A boolean indicating whether the error stream should be displayed or not.

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published