我正在为 sass 使用 scss 格式(我正在使用括号)。当我使用 watch 命令(sass --watch “我拥有所有 sass 文件的文件夹”)时,我收到以下错误消息:
error sass (Line 37: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.)
行号是否与生成的 css 文件、scss 文件或其他文件中的行号相对应(我将部分内容包含在我的 base.scss 文件中)。
base.scss 文件中的第 37 行以与其他行相同的方式缩进。
font-family: Arial;
最佳答案
Pilot 错误:我在错误的文件夹上使用了 watch 命令。切换到正确的文件夹后,我能够编译 sass 文件。
关于sass - 使用 sass 时缩进不一致,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23789101/