miracle2k / webassets

Asset management for Python web development.
BSD 2-Clause "Simplified" License
921 stars 258 forks source link

LibSASS - Unable to use other compile options like source_comments #526

Open z3ugma opened 4 years ago

z3ugma commented 4 years ago

When using the LibSASS filter, only certain kwargs are passed to the sass.compile command.

Per http://hongminhee.org/libsass-python/sass.html#sass.compile, there are a number of other options including source_comments=True that I'd like to able to pass into the filter.

This line calls compile with **args: https://github.com/miracle2k/webassets/blob/8380c0db3f23167bfb192bd560ab81363edb7451/src/webassets/filter/libsass.py#L78

Where args is a limited dict declared a few lines earlier: https://github.com/miracle2k/webassets/blob/8380c0db3f23167bfb192bd560ab81363edb7451/src/webassets/filter/libsass.py#L66