Giter Site home page Giter Site logo

Do we need better stringifier ? about css HOT 5 CLOSED

reworkcss avatar reworkcss commented on July 30, 2024
Do we need better stringifier ?

from css.

Comments (5)

conradz avatar conradz commented on July 30, 2024

Is there any reason to keep the source format now that we have source maps? I pretty much never look at the generated source code, so IMO I don't care how it looks.

from css.

MoOx avatar MoOx commented on July 30, 2024

I totally get the "i don't look so i don't care", but it just sounds stupid to me (stupid to change whitespace, I understand your point of view, since most of the time (98%) I never checkout output).
But in that way postcss is doing a better job at keeping author coding style.
I'm working on a playground for myth.io website (so people can try & get live output) & I would like to just keep author preferences to make minimal changes (like postcss does when you use autoprefixer for example).

from css.

necolas avatar necolas commented on July 30, 2024

it's a lot of changes for a relatively trivial use case though. it's not that this module intentionally changes whitespace, it's that preserving it is extra complexity.

from css.

lydell avatar lydell commented on July 30, 2024

It would not be enough to change the stringifier. The parser would need changes as well.

However, what's the point of doing things just like postcss? Then we could just use postcss instead, couldn't we?

Recently I've had a really hard time choosing between rework and postcss. Since postcss has been rewritten in JavaScript (no more CoffeeScript) I've started to lean to it ...

from css.

MoOx avatar MoOx commented on July 30, 2024

@lydell I'll probably do the same so. That would involve rewriting all current plugins used by myth as postcss plugins. Ouch.

from css.

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.