Closed 1oglop1 closed 4 years ago
I started to use webassests and I kept getting an exception with the message
webassets.exceptions.FilterError: sass: subprocess returned a non-success result code: 64, stdout=b'Could not find an option named "line-comments".
Implemented somewhere around here: https://github.com/miracle2k/webassets/blob/master/src/webassets/filter/sass.py#L95
This option seems to be part of ruby-sass which was deprecated in March 2019. according to: https://sass-lang.com/ruby-sass
ruby-sass
Steps to reproduce the exception:
OS: MacOS 1) Install sass: brew install sass/sass/sass 2) prepare any style.scss 3) run the code:
brew install sass/sass/sass
style.scss
from webassets import Environment, Bundle my_env = Environment( directory='style', url='/media' ) css = Bundle( 'style.scss', filters='sass', output='gen/style.css' ) my_env.register('css_all', css) print(my_env['css_all'].urls())
I also tried to install sass with npm and the option was still missing.
npm
There seems to be a python implementation of sass, would it be an option to implement this instead of relaying on sass directly? https://github.com/sass/libsass-python
sass
I started to use webassests and I kept getting an exception with the message
Implemented somewhere around here: https://github.com/miracle2k/webassets/blob/master/src/webassets/filter/sass.py#L95
This option seems to be part of
ruby-sass
which was deprecated in March 2019. according to: https://sass-lang.com/ruby-sassSteps to reproduce the exception:
OS: MacOS 1) Install sass:
brew install sass/sass/sass
2) prepare anystyle.scss
3) run the code:I also tried to install sass with
npm
and the option was still missing.There seems to be a python implementation of sass, would it be an option to implement this instead of relaying on
sass
directly? https://github.com/sass/libsass-python