Coder Social home page Coder Social logo

Comments (5)

erikjung avatar erikjung commented on June 2, 2024

I wonder if we should use this instead: https://github.com/cssnext/postcss-cssnext

@tylersticka @lyzadanger Thoughts? It might free us up from these dependency blockers.

from cloudfour.com-patterns.

tylersticka avatar tylersticka commented on June 2, 2024

I believe I mildly protested using cssnext instead of the individual PostCSS plugins as-needed way back when because of this very issue. It seems like it would be simpler to just add whichever of the dozen or so dependencies we actually need from cssnext rather than having to manage a middle-man dependency of questionable convenience (questionable because we've now arguably spent as much time figuring out what to do with it being out of date as we would have installing those modules individually).

But, as before, I don't feel like cssnext is awful. I see it as a convenience module, and this process seems inconvenient, which is why I'd question its usefulness again. But not the end of the world either way.

from cloudfour.com-patterns.

erikjung avatar erikjung commented on June 2, 2024

It seems like it would be simpler to just add whichever of the dozen or so dependencies we actually need from cssnext rather than having to manage a middle-man dependency of questionable convenience (questionable because we've now arguably spent as much time figuring out what to do with it being out of date as we would have installing those modules individually).

The appeal of cssnext for me has more to do with the convenience of someone else curating that list of plugins to keep up with the spec. This holdup isn't really the fault of cssnext itself, but with some of the plugins it uses (so in theory, this same issue could arise even without the abstraction of PostCSS if we were using those offending plugins.)

I would like to monitor the development of this postcss-cssnext package though:

The cssnext package will have a major release soon in order to introduce a minor but breaking changes in the Node.js API, but you will get the same tool as before. The nice thing is: cssnext will use postcss-cssnext under the hood.

from cloudfour.com-patterns.

tylersticka avatar tylersticka commented on June 2, 2024

This holdup isn't really the fault of cssnext itself, but with some of the plugins it uses (so in theory, this same issue could arise even without the abstraction of PostCSS if we were using those offending plugins.)

Sure, except I'd argue we'd be more empowered to resolve it (by being able to cherry-pick what we do or don't need). Middle-man packages like cssnext are convenient until the day they aren't, and then they're an obstacle.

Again, I don't hate cssnext. Just my two cents.

from cloudfour.com-patterns.

erikjung avatar erikjung commented on June 2, 2024

Noting this commit here for reference: postcss/postcss-import@0626939#diff-168726dbe96b3ce427e7fedce31bb0bc

In short: the new version of postcss-import that works with PostCSS 5.0 isn't going to work on our machines (Node 0.10), so I guess we'll just close this until that issue can be sorted out.

from cloudfour.com-patterns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.