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

Parse error when use stylus as css preprocessor #127

Closed
gaconkzk opened this issue Aug 21, 2019 · 2 comments
Closed

Parse error when use stylus as css preprocessor #127

gaconkzk opened this issue Aug 21, 2019 · 2 comments
Assignees

Comments

@gaconkzk
Copy link

gaconkzk commented Aug 21, 2019

Setting up a riot project using rollup and stylus css preprocessor, seem the compiler put wrong css code into registerPreprocessor function.

Repository for error reproduce: https://github.com/gaconkzk/fliesml
(gaconkzk/fliesml@4e904c7)

Error:
error-fliesml

Expect behavior: The parameter code in registerPreprocessor should have \n in them
Actual: All \n characters was remove so the stylus parser can't parse.

@GianlucaGuarini GianlucaGuarini self-assigned this Aug 21, 2019
@GianlucaGuarini
Copy link
Member

@gaconkzk you are absolutely right, that's a bug. The css output shouldn't be compressed before going through the compilers. I will need to patch these lines and it should be a trivial fix https://github.com/riot/compiler/blob/master/src/generators/css/index.js#L102-L103

@gaconkzk
Copy link
Author

It worked. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants