CSS and @import

Assuming that I understand your objective…

@import in a CSS file reference the other files, it does not import them in the same way that Sass does during transpilation.

So I think you would need to:

1) Name your CSS files so that when sorted they are concatenated in the correct order:

01_main.css
02_reset.css
03_vars.css
04_layout.css

2) Use resources.Match "*.css" to get all of them.

3) Sort them (resources.Match may already do that… I don’t remember).

4) Concatenate them with resources.Concat.

2 Likes