Show HN: Rucksack – CSS superpowers, built on PostCSS
simplaio.github.io
Show HN: Rucksack – CSS superpowers, built on PostCSS
1–10 of 10 posts
Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#2Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#3I'd prefer nextCSS with all the spec being based on what is actually going to make in into CSS. Otherwise it's the same downsides as preprocessing languages with the added bonus of not being able to easily tell what lines are native to css or not.
Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#4Looks appealing, but it is very confusing. At least with Sass/less etc you can easily distinguish between native css and non-native css constructs such as mixins and extends. But the additions rucksack make are ambiguous. Is it real spec, future spec or something that rucksack developers have added for convenience? I'd prefer nextCSS with all the spec being based on what is actually going to make in into CSS. Otherwi…
If so, that is also built on PostCSS and could be combined with this pack. Rucksack is just a packaging of other PostCSS plugins: https://github.com/simplaio/rucksack/blob/master/index.js#L6...
Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#5Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#6Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#7Looks appealing, but it is very confusing. At least with Sass/less etc you can easily distinguish between native css and non-native css constructs such as mixins and extends. But the additions rucksack make are ambiguous. Is it real spec, future spec or something that rucksack developers have added for convenience? I'd prefer nextCSS with all the spec being based on what is actually going to make in into CSS. Otherwi…
Do you mean cssnext? http://cssnext.io/ If so, that is also built on PostCSS and could be combined with this pack. Rucksack is just a packaging of other PostCSS plugins: https://github.com/simplaio/rucksack/blob/master/index.js#L6...
Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#8This is neat, but you're removing any ability to customize each of the sub-modules you're using. Something like how PreCSS does it would be helpful: https://github.com/jonathantneal/precss/blob/master/index.js...
But feel free to chuck an issue up on github, this behaviour probably needs to be accounted for sooner or later.
Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#9Looks appealing, but it is very confusing. At least with Sass/less etc you can easily distinguish between native css and non-native css constructs such as mixins and extends. But the additions rucksack make are ambiguous. Is it real spec, future spec or something that rucksack developers have added for convenience? I'd prefer nextCSS with all the spec being based on what is actually going to make in into CSS. Otherwi…
And to clarify, yep Rucksack certainly isn't to-spec (present or future). It's a collection of handy features and shortcuts, like the compass/nib/bourbon of PostCSS. As timdorr points out, you could absolutely use it with cssnext (we do exactly that over at Simpla), you'd probably just want to disable autoprefixing, since cssnext does that for you.
Re: Show HN: Rucksack – CSS superpowers, built on PostCSS
#10Looks appealing, but it is very confusing. At least with Sass/less etc you can easily distinguish between native css and non-native css constructs such as mixins and extends. But the additions rucksack make are ambiguous. Is it real spec, future spec or something that rucksack developers have added for convenience? I'd prefer nextCSS with all the spec being based on what is actually going to make in into CSS. Otherwi…
The API is intentionally transparent. The idea is that you're still writing in the CSS language (even if with non-spec features), rather than a DSL. So if you ever did want to rip Rucksack out and go back to-spec, you'd just run it and grab the output. Your overall structure, logic, and code would look pretty much the same, just with the (expanded) additions of the individual features Rucksack added. This often isn't…
But adding new spec that looks like the CSS language is not transparent, it's ambiguous. It's not a knock perse. And like you say it does not lock you in, as you can rely on the output. But I wouldn't want to use it for projects that are distributed to other users, because now they have the burden of learning and distinguishing between constructs coming from rucksack and normal css spec.