0

How to force SASS to merge external css files?

//these two files will not merged
@import "js/font-awesome/css/font-awesome.css";
@import "js/selectize/css/selectize.css";
//thess two files will be merged
@import "js/font-awesome/css/x.scss";
@import "js/selectize/css/y.scss";

I do not want to rename foo.css to foo.sass.

Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173

1 Answers1

0

Without renaming or adding the partial "_" underscore in front of the filename it is not possible to do as you wish - as far as I know.

I came across this post: How to merge .CSS files with Sass (or other tool)?

Hope this helps you.

Community
  • 1
  • 1
F. Müller
  • 3,969
  • 8
  • 38
  • 49
  • Thanks, what is the effect of using `_` ? – Handsome Nerd Dec 18 '13 at 07:42
  • Generally, you have a main source file in which you include a "partial" its kindof like "including" but in sass it merges the files instead of just loading both individually (1 big file, 1 request). And you dont have to worry about the file-type it can be either sass, scss or css. You can specify a partial with that underscore in the filename. Then to import this file use: @import "mypartial" – F. Müller Dec 18 '13 at 10:08