Import regular CSS file in SCSS file?

后端 未结 13 1385
旧巷少年郎
旧巷少年郎 2020-11-22 06:19

Is there anyway to import a regular CSS file with Sass\'s @import command? While I\'m not using all of the SCSS syntax from sass, I do still enjoy it\'s combini

相关标签:
13条回答
  • 2020-11-22 06:50

    Looks like this is unimplemented, as of the time of this writing:

    https://github.com/sass/sass/issues/193

    For libsass (C/C++ implementation), import works for *.css the same way as for *.scss files - just omit the extension:

    @import "path/to/file";
    

    This will import path/to/file.css.

    See this answer for further details.

    See this answer for Ruby implementation (sass gem)

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