Coder Social home page Coder Social logo

Comments (1)

bnjmnrsh avatar bnjmnrsh commented on July 20, 2024

Thanks to @devongovett 's explanation about the mechanics and reasoning behind @parcel/transformer-css and LightningCSS's errorRecovery option, I can see that the configuration of this particular feature will remain in package.json for the foreseeable future.

So there are a few things in the current CSS docs that I feel could be expanded to make the feature better understood:
First LightingCSS isn't mentioned until the very end in the minification section, which is a shame, one because it's an awesome project in its own right worth highlighting, and two, there a few other small options in addition to errorRecovery that some might be interested in. Given this I'd say it would be useful add the following bits of information, much of which could just signpost to the LightningCSS Parcel docs.

  • Intro: Reference the CSS module is built on LightningCSS
  • New Heading: "Lightning CSS" (after PostCSS before Production?)
    • Brief intro to Lightning CSS, similar to PostCSS intro text
    • Outline the 'default' config provided by Parcel and that custom config can be added to package.json
    • Advisory note about errorRecovery ie "Should your project rely on malformed CSS tricks such as IE hacks then the errorRecovery option can be added to your package.json.
    • Signpost to LightningCSS for additional detials.

Also:

  • Plugins Docs add quick clarification that:
    • .parcelrc is for Parcel's own internal plugin configuration. Parcel honours the configuration of any of its included tools such as PostCSS or TypeScript using their own config files or in package.json. See configuration notes in each language for details.

If the above outline of changes looks okay, and if it would be welcome, I'd be happy to put forward a first draft.

from website.

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.