I'm trying to find a way to compile my multiple scss files into one css file.
scripts are in package.json using node-sass
The best I've found for the moment is : sass --watch .assets/css/scss/:assets/css
The problem is it creates one css file for each scss file plus a css map file.
I was previously working without watch node-sass --include-path scss .assets/css/scss/style.scss assets/css/style.css
but had to run the command at each save.
Using sass --watch .assets/css/scss/style.scss:assets/css/style.css
with style.scss like this :
@import 'test1.scss';
@import 'test2.scss'
is not working but console say :
Compiled style.scss to style.css. Compiled test1.scss to test1.css
Am i missing something?
EDIT : for some reasons, running only sass without node on a subsystem linux is causing some blue screen. Using node-sass --watch ./assets/css/scss/style.scss:assets/css/style.css
or node-sass --watch ./assets/css/scss:assets/css
return a npm error : code ELIFECYCLE errno 1
@imports
as you are, but the actual SCSS file rename to_test1.scss
, etc. – disinforsass --watch .assets/css/scss/:assets/css
i just had 2 blue screen in a row... @disinfor which command should i use (considering sass without node is causing some blue screen)? do i also have to rename the file test1 or is it just into the style.scss with the import ? – Mugo@import
you remove the underscore (so you keep what you currently have). Your--watch
should pick up anytime you save an include file and recompile to your styles.css – disinfor