Is it possible to exclude / ignore some CSS files from Sass Processor?

I am using SASS / SCSS. I have some .css files that I want to ignore RubySassProcessor. Does anyone know how to exclude them?

+4
source share
3 answers

If you add an underscore in front of the file name, it will be ignored, but can then be added as part using @import.

  • Rename filename.scss to _filename.scss
  • Optional: add the following to the file you want to include:

    @import "filename"

It also effectively ignores the css file since it will not compile the changes from the scss file to the css file.

A deeper explanation can be seen here: Webstorm 6 - How to make the scsc file observer ignore files

And now in the Particles section: http://sass-lang.com/documentation/file.SASS_REFERENCE.html

+6
source

I would do this: separate the sass|scss and css files into different directories and use sass --watch only in the sass folder. The output should be redirected to the css folder.

Assuming your application structure is similar to:

 app | |--assets |----| |----|--test.sass |----|--print.sass |----|--ie.css 

Change the structure to:

 app/ | |--assets/ |----|---sass/ |----|----|--test.sass |----|----|--print.sass |----|---stylesheets/ |----|----|--ie.css 

and run

 sass --watch assets/sass:assets/stylesheets 
0
source
-1
source

Source: https://habr.com/ru/post/1481143/


All Articles