-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Drop grunt-recess for grunt-contrib-less #11790
Conversation
I've asked the grunt-csscomb folks about the options here: csscomb/grunt-csscomb#9. Still can't figure that part out. |
Also, meant to point to #11779 as the one to integrate with. At any rate, this has moving pieces 😀. |
@mdo I pushed a commit with the fixes suggested by the grunt-csscomb folks; seems to work! |
dest: 'dist/css/<%= pkg.name %>-theme.min.css' | ||
files: { | ||
'dist/css/<%= pkg.name %>.sorted.css': ['dist/css/<%= pkg.name %>.css'], | ||
'dist/css/<%= pkg.name %>.min.sorted.css': ['dist/css/<%= pkg.name %>.min.css'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why bother combing minified files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well be consistent :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I screwed up—I get it now. Removed awhile back <3.
Conflicts: dist/css/bootstrap.min.css
Original discussion: less/less.js#1437 (comment). Since we’re switching to `grunt-contrib-less`, we can take advantage of newer LESS features than what RECESS supported. Included in that is the ability to `:extend`, and not only that, but `:extend(.mixin-name all)`. By doing so, we remove duplicate CSS for all our elements that were being clearfix-ed. Fixes #8947, #8968, #8991, #9257, #9268, #9291, #9430, #9604, #9686, #9929, #10731, #10793, #11305, #11498, #11533, #11570, #11604, #11652. (dem issues, tho)
This is looking super good at this point—not much difference between the Recess version in master and this one. Definitely can make this happen with v3.1.0. Also just pushed a fix for #8947, and like a dozen other issues, for the duplicate CSS problem. Aww yeah. |
Conflicts: Gruntfile.js dist/css/bootstrap-theme.min.css dist/css/bootstrap.min.css
Conflicts: Gruntfile.js package.json
options: { | ||
compress: true | ||
keepSpecialComments: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really want normalize.css' license header in the minified files? Also, now the banner is missing from the minified files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why not honestly. It's their code after all—credit due and all that. I'm open to feedback on this though. Why remove it, and is it even possible to do with grunt-contrib-less
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's your call if you want the license info in the minified files, I guess the correct thing would be to keep it.
About the options, ieCompat
seems something that should be enabled in grunt-contrib-less
. Can't find the docs about setting clean-css' options via grunt-contrib-less atm.
@mdo I don't think we should have merged #11778. We should just enable |
I agree with the above @cvrebert. That's what I meant it seemed better to switch to grunt-contrib-less, because it combines both things. |
Ah, good call. A sign it's too late to be doing this :D. Pulled it and added the Let me know if there's anything else. |
|
Yeah was looking at those too. About source maps, I wonder how that will work since clean-css doesn't support them. |
Added ➜ ~/Sites/bootstrap (drop_recess_for_less) grunt dist
Running "clean:dist" (clean) task
Cleaning dist...OK
Running "less:compile" (less) task
FATAL ERROR: JS Allocation failed - process out of memory I've already added I'm fine calling this good enough, too, and we can explore those other things afterwards. I'm not familiar enough with source maps (yet). This is already a pretty huge win :). Two final questions:
<3 |
(1) Agreed, it should be moved further down.
Derp, my bad. |
@mdo: how about the About csslint, since we are running it against the compiled dist css I guess you could move it. I added it there after jshint and jscs since it's for a similar job. |
@XhmikosR |
Oh ok didn't notice that. |
You could do it in same way you do it for js files, use concat task. No need for grunt-banner. |
@tlindig Not a bad idea, I'll give that a go in a separate effort unless someone else wants to jump in :). |
Drop grunt-recess for grunt-contrib-less
Drop grunt-recess for grunt-contrib-less
Drop grunt-recess for grunt-contrib-less
This is the first part to migrating away from Recess and to something that's more up to date with LESS. It adds a few other dependencies, and there are some kinks to work out though.
grunt-recess
and addsgrunt-contrib-less
.grunt-banner
though sincegrunt-contrib-less
hasn't implemented (and won't) banner support.We'll need to integrate #11778 as part of this as well, either before or after. Perhaps @XhmikosR wants to join in on the fun here? Definitely could use some help.