Specify one scss file in compass config.rb

I am working on a deployment process for an HTML5 application. I use compass and SCSS for styling, and I have config.rb in the root directory of my project to configure the compass. I have an app.scss file that contains several imported files to import other files in the correct order.

@import "definitions"; @import "common"; // global stuff @import "modal"; // tabs @import "login"; @import "summary"; @import "profile"; // etc..... 

It seems that I cannot specify this app.scss file in config.rb, it only has sass_dir , which makes the compass try and compile each file. This is interrupted because, for example, login.scss does not import definitions. Scss and breaks if a variable is specified from it. app.scss should be the only file compiled, since only he knows about all the other files

Is it possible? Also, I cannot specify command line arguments, because ultimately all this will be done through grunt and the grunt-compass plugin, so I need everything to be in config.rb

+6
source share
1 answer

Not 100% sure that this is a problem .. But ..

I assume that you are looking at the directory at compilation. If so, files that you do not want to compile should begin with an underscore.

For instance...

_myFile.scss

+20
source

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


All Articles