Import regular CSS file in SCSS file?

后端 未结 13 1396
旧巷少年郎
旧巷少年郎 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:33

    If I am correct css is compatible with scss so you can change the extension of a css to scss and it should continue to work. Once you change the extension you can import it and it will be included in the file.

    If you don't do that sass will use the css @import which is something you don't want.

提交回复
热议问题