sass / libsass-python

A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!
https://sass.github.io/libsass-python/
MIT License
559 stars 54 forks source link

compile bulma sass? #409

Open zprd opened 1 year ago

zprd commented 1 year ago

Hi, I've got this error while compiling my.sass that imports bulma.sass (@import "./bulma/bulma.sass") on the other hand sassc produces no error.

what am I doing wrong?

   sass.compile(dirname=('sass', '.css'), output_style='compressed')
  File "/usr/local/lib/python3.9/dist-packages/sass.py", line 725, in compile
    raise CompileError(v)
sass.CompileError: Error: The target selector was not found.
       Use "@extend %overlay !optional" to avoid this error.
        on line 111 of sass/bulma/sass/layout/hero.sass
>>   @extend %overlay;

   ----------^
asottile commented 1 year ago

my guess is your import path is wrong

zprd commented 1 year ago

you mean in my sass file or the arguments of the compile invocation?

I use this path in my sass file @import "./bulma/bulma.sass";

my working tree is like this:

sass
├── bulma
│   ├── bulma.sass
│   └── sass
│       ├── base
...
│       ├── components
...
│       ├── elements
...
└── my.sass