2

I've generated a couple of helper scss files within my scss project folder indicated by a '_' prefix. On file change however, prepros will compile them into a css file.

As I understand how this should work is _ should indicate to the pre-processor to ignore the file until explicitly included into a standard .scss file. And this isn't the case. Would this be a bug in prepros or is there a configuration setting somewhere that I would need to adjust?

4

2 回答 2

1

我经常使用Prepros

我有两个解决方案。

解决方案1:可能是软件中的错误,因此更新可能会解决您的问题。

解决方案2:您可能尚未配置设置,因此更新配置设置。

要更新配置设置,请执行以下步骤:
1 - 单击设置 2 - 现在在File Watcher面板中,转到路径过滤器并添加它。现在,它将忽略所有以包含任何名称开头的 .scss 扩展文件。 :)在此处输入图像描述
_*.scss_
在此处输入图像描述

于 2019-09-16T15:29:53.313 回答
1

我知道这是一篇较旧的帖子,但是如果将部分导入到主 SCSS 文件中,编译器将忽略部分作为单个文件并将它们包含在主 CSS 输出中。如果它们没有被导入,除非你在软件中过滤它们,否则它们将被编译。

于 2018-08-19T03:48:56.537 回答