You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This transformer reads the contents of a SCSS Files, replaces some vars and converts it to CSS.
I took your render function and slightly modified it.
My problem was that I had to search through your files to find the right imports.
This should be easier.
# I had to import these files
import'package:sass/src/ast/sass.dart'as sass;
import'package:sass/src/visitor/serialize.dart';
import'package:sass/src/visitor/perform.dart';
import'package:sass/src/io/vm.dart';
Converting not a file but the contents could be a nice feature for other libs too.
In my opinion there should bei either a global function for String rendering or it should be easier to get access to your Stylesheet-class.
However - Thanks for this package!
The text was updated successfully, but these errors were encountered:
I've just published https://github.com/MikeMitterer/dart-sass-var-transformer/blob/master/lib/sass_var_transformer.dart
This transformer reads the contents of a SCSS Files, replaces some vars and converts it to CSS.
I took your render function and slightly modified it.
My problem was that I had to search through your files to find the right imports.
This should be easier.
Converting not a file but the contents could be a nice feature for other libs too.
In my opinion there should bei either a global function for String rendering or it should be easier to get access to your Stylesheet-class.
However - Thanks for this package!
The text was updated successfully, but these errors were encountered: