Reputation: 87
I am learning Scss, and reading this article. https://scotch.io/tutorials/aesthetic-sass-1-architecture-and-style-organization#architecture
Should I load main.scss at beginning, or load the scss file when need it. If we should do the second way, then would it be too annoying to import relevant css files every time you create a new page?
Upvotes: 1
Views: 187
Reputation: 1
You don't need to include any scss file in your html instead if your file name is (main.scss) you will include (main.css) in your html doc and you need a compiler like http://koala-app.com/ which will auto read the scss and will covert that code in css after you assign the folder to Koala Compiler ...
Upvotes: 0
Reputation: 9680
You will need a Sass compiler to compile the CSS files into CSS. So I suggest using single main.CSS file and import other CSS files into it.
Usually, the compilers compile all the CSS files into their independent CSS files. In order to avoid it name your other CSS files like _scssfile.scss and _scssfile2.scss and import them into the main.scss.
This will create a single CSS file which you can import.
Using a CSS file make a single call on the network, if you use multiple files then the network will call each of them separately.
Hope this helps :)
Upvotes: 0