Search

8/05/2013

sass - Import regular css file in scss file? - Stack Overflow

sass - Import regular css file in scss file? - Stack Overflow - 如果單純用 @import './foo.css' 只會轉成用 css import 在 build 過程不會打成一包

You must prepend an underscore to the css file to be included, and switch its extension to scss (ex: _yourfile.scss). Then you just have to call it this way: @import "yourfile" And it will include the contents of the file, instead of using the CSS standard @import directive.

沒有留言: