Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export 'Stylesheet-class' for easier lib-usage or provide String rendering function #127

Closed
MikeMitterer opened this issue Feb 28, 2017 · 1 comment
Labels
Dart Issues particular to the pure Dart distribution

Comments

@MikeMitterer
Copy link

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.

# 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!

@nex3 nex3 added the Dart Issues particular to the pure Dart distribution label May 18, 2017
@nex3
Copy link
Contributor

nex3 commented Apr 14, 2018

Duplicate of #236

@nex3 nex3 marked this as a duplicate of #236 Apr 14, 2018
@nex3 nex3 closed this as completed Apr 14, 2018
nex3 pushed a commit that referenced this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dart Issues particular to the pure Dart distribution
Projects
None yet
Development

No branches or pull requests

2 participants