-
Notifications
You must be signed in to change notification settings - Fork 41
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
Compile Twitter Bootstrap 4 #4
Comments
Is possible that these improvements allow to compile also Bulma |
@MartinKavik @connorskees Is still working on From what I see from the source code, |
@MartinKavik @pickfire yes that's correct, Bulma is blocked largely on A possibility could be silently eating At the moment, only |
Thanks for answer. I will be updating Seed template for new apps in next weeks so I'm just exploring options - there can be Bulma, Bootstrap or nothing and I can change it in the future - don't hurry, great job! |
@connorskees Thanks for the work on this. By the way, are you planning to add a benchmark with the official dart implementation later on? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@MartinKavik I'm still trying to track down an Performance has regressed slightly as a result of implementing I'll be releasing a new bugfix version to crates.io once I can resolve the |
It is now possible to compile * ignoring some newlines You can play around with it by running,
There are currently 1 bug and 1 feature blocking bootstrap. The bug being something related to colors and number precision (I think |
Awesome news! I'm just writing the third and the biggest Seed tutorial and I want to use |
I've just released Benchmark results
(to anyone subscribed to this issue, I'll try to avoid pinging this thread again until |
Sorry to alert everyone so soon, but I was not expecting to finish this tonight!
To test it out,
I'll be leaving this issue open until I can resolve the extra newlines and special cased division. |
@MartinKavik Off-topic, I am wondering if seed will ever look into not using virtual DOM? |
For me, bootstrap 4.5.2 doesn't compile with version 0.10.0, nor with 0.9.4:
|
@MidasLamb You're right! Thank you for bringing this up. The issue is almost certainly related to a bug recently introduced in one of our dependencies. The error was introduced in a bugfix release so cargo is pulling in the broken version. This also broke CI. See 0c7e201 for a recent fix for this. I will release |
@connorskees , great, thanks for the quick response! |
@MidasLamb for now unfortunately it seems that publishing If you'd like to use |
The next release of Additionally, I have run a script to perform this check for the last 2,500 commits of bootstrap and have resolved all the differences (largely strange handling of newlines). This commit range includes all commits of bootstrap 4 and 5. I am considering the work necessary to compile bootstrap done. Remaining features/bugs are tracked in #19. |
A 1.0 release of
grass
should be able to compile bootstrap identically todart-sass
. The features currently blocking Bootstrap from even compiling are@extend
@keyframes
@supports
red
,green
, andblue
)and
operatoror
operator@import
The places where
grass
anddart-sass
differ in output are["foo"] => [foo]
, but we retain quotes).dart-sass
has complex rules for determining whether quotes should be emitted or notRc<RefCell<Selector>>
@media
@media
/
should only occur in special casesThe text was updated successfully, but these errors were encountered: