Andreas Lind
Andreas Lind
I've run into this a couple of times as well. It would have helped me if `nvm-exec` just didn't [suppress the error message from the failing `nvm use` command](https://github.com/creationix/nvm/blob/17586b971a750dcc8019aa59169bbfa360374714/nvm-exec#L10). Also,...
> `nvm use --install` isn’t a thing, because you can always nvm install to get that behavior. Ah, sorry, I meant `nvm.sh --install`. > nvm-exec isn’t the primary use cases...
Added experimental implementation in 0f271ac. Requires the `check` parameter to be valid JavaScript, so you need to use bracket notation for things like `#eee` and `class`. ``` cardio example/index.html --check...
Attempted a fix in 89175d1. I know it isn't bulletproof, but I think it'll do the trick for now.
Awesome :). That'd be exactly what I need!
I ended up hacking the CSS parser to continue with a new rule (with an identical selector) if it sees a property redefinition. Seems like that preserves the semantics: https://github.com/One-com/assetgraph/compare/9609d665b8c8e645d8f3...ee00c998754b15c75952#diff-0...
@NV: Since I wrote the previous message I've patched the serialization code to do the inverse: https://github.com/One-com/assetgraph/blob/master/lib/3rdparty/CSSOM/lib/CSSStyleSheet.js#L77-L91 So your example now serializes to one rule with a single selector :)...
@quaelin: In the mean time you can `npm install cssom-papandreou` to use my hack.
@superlc I recommend using postcss instead, unless it's important to work with the CSSOM api. Postcss doesn't have this limitation.
@jsmarkus I've done something very similar here: https://github.com/One-com/assetgraph-sprite -- except that I put the spriting instructions into vendor-prefixed CSS properties. That actually turned out to be very pleasant to work...