Giter VIP home page Giter VIP logo

Comments (2)

gihrig avatar gihrig commented on August 24, 2024

@thekevinscott I definitely have a need for this functionality.
but I world prefer to do it in postcss.config.js.

I have been trying to figure out how to do this with next-css. I've taken the approach of using PostCSS to pass options to cssModules, which has worked well, so far.

I did it this way because I intend to use 'postcss-cssnext', in addition to 'postcss-modules' and I would rather have all of that configuration in one place.

(snip)

I didn't see that your modification in #16 included that final step, or did I miss something?

That was because including 'postcss-modules' in postcss.config.js results in an empty string being returned in the React component. e.g. className={styles.hello} === ''. Even when there is no config passed to 'postcss-modules'.

(snip)

Edit: I did have great success with your mod in #16. ✨

from next-plugins.

timneutkens avatar timneutkens commented on August 24, 2024

As per #16 this will soon be possible using cssLoaderOptions

from next-plugins.

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.