开发者

Django_compressor error with Sass. Cannot @import files

开发者 https://www.devze.com 2023-04-13 08:44 出处:网络
I am trying to use Sass to compile a style.scss file with django_compressor. I have found that Sass works on the command line if I am in the css directory, but if I am in any other directory it produ

I am trying to use Sass to compile a style.scss file with django_compressor.

I have found that Sass works on the command line if I am in the css directory, but if I am in any other directory it produces the same error as below.

Caught FilterError while rendering: Syntax error: File to import not found or unreadable: helpers.scss
Load path: .
on line 28 of d:\siphon\s开发者_开发问答iphon\static\css\style.scss

How can I fix this error?


take a look at Compass. It compiles your sass to a css and only then you get compressor to do it's job.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号