• 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 @imported 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?

    • This topic was modified 6 years, 4 months ago by willav.
    • This topic was modified 6 years, 4 months ago by willav.
  • The topic ‘Importing plain css files using @import’ is closed to new replies.