Importing plain css files using @import
-
https://stackoverflow.com/questions/7111610/import-regular-css-file-in-scss-file
This thread talks about a means by which you can use a sass compiler to include raw, plain CSS into your compiled css file using
@import.
In an attempt to automate the combination of all my CSS files in one. I was doing something like this:
@import 'bootstrap.min' @import '_main.scss'; @import '_secondary.scss';
However when compiled this doesn’t work.
The resulting CSS file starts with
@import 'bootstrap.min'
rather than the contents of bootstrap.min.css.Trying another option I changed the filename of bootstrap.min.css to _bootstap.min.scss and
@import
ed that. This freezes the WP site entirely.Any thoughts on if I can achieve an automated merge of all my scss and css files using WP-SCSS?
- The topic ‘Importing plain css files using @import’ is closed to new replies.