Compile/watch/compress scss file to css

brew install sass/sass/sass

$ sass –version
1.16.1

sass --watch style.scss ../css/style.css

sass style.scss ../css/style.css --style compressed

style.scss contains mutilple scss files:

@import url(‘https://fonts.googleapis.com/css?family=Lato|Roboto’);

@import “reset”;

@import “variables”;
@import “mixins”;
@import “layout”;
@import “text”;
@import “nav”;
@import “content”;
@import “forms”;
@import “selectBoxIt”;
@import “responsive”;

 

$ sass –watch scss/main.scss:css/main.css
Compiled scss/main.scss to css/main.css.
Sass is watching for changes. Press Ctrl-C to stop.

Compiled scss/main.scss to css/main.css.

Leave a Reply

Your email address will not be published. Required fields are marked *