【发布时间】:2020-11-11 14:41:23
【问题描述】:
我使用 npm 安装了 zurb-foundation 并尝试将前者的 .scss 导入到我的 App.scss 文件中。我正在使用“实时 sass 服务器”将 .scss 代码编译为 .css 代码。虽然创建了 .css 文件,但即使我将 .scss 从基础导入到 App.scss,它也没有显示任何代码
pic shows the .scss code on the left and corresponding .css code on the right
【问题讨论】:
-
您必须使用导入而不是目录添加文件。
-
我不明白。请详细说明一下,我完全是菜鸟。据我了解,您一定是在建议我添加@import“文件位置”;在我的 App.scss 中。我已经做了,请看图片。
-
您必须实际导入/包含单个文件。您不能导入/包含整个目录/文件夹。有关工作设置,请参阅 github.com/foundation/foundation-zurb-template/blob/master/src/…。
标签: css reactjs npm sass zurb-foundation