How to @import .css file as a .scss file in sass?

后端 未结 1 1366
独厮守ぢ
独厮守ぢ 2021-02-19 01:00

I am using gulp as a task runner which merge and minifying scss files for me. In this case if I try to import a regular CSS file, it will compile to a

1条回答
  •  抹茶落季
    2021-02-19 01:16

    Simply do this:

    /* style.scss */
    @import "../../bower_components/animate.css/animate";
    

    Just don't write file extension, Import the file without the extension, the compiler will put the file content in style.css instead of putting @import rule.

    0 讨论(0)
提交回复
热议问题