CSS Modules and Post-CSS support #1391

Closed
opened 2025-08-09 17:19:58 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @Spiralis on 9/13/2016

I am very interested in getting CSS modules working. I have become fond of the css modules solution in combination with React. I just moved from Meteor to finally (😄) getting a .Net backbone to work with.

CSS Modules is becoming a very popular solution it seems, understandingly. I was also hoping to start benefitting from post-css features, such as autoprefixing.

But, I can't find out how to get css modules working. I have tried to make this work myself, but I keep getting import errors. Also, I see that there are two different ways to import data. I see that one has to use require instead of import if a variable is needed (like with CSS Modules). I found that I could use the trick referred to here: http://stackoverflow.com/a/36107464/95008. But, I am getting an import error:

[node]  Error: Cannot find module './../../../../node_modules/css-loader/lib/css-base.js'
+ stack

Are there any solutions or workarounds for this?

If not, what are the current roadmap plans in regards to supporting CSS Modules and/or Post-CSS?

Currently, CSS modules is the last thing holding me back from introducing this to my tech team, so that we can start converting of my old meteor project.

*Originally created by @Spiralis on 9/13/2016* I am very interested in getting CSS modules working. I have become fond of the css modules solution in combination with React. I just moved from Meteor to finally (:smile:) getting a .Net backbone to work with. CSS Modules is becoming a very popular solution it seems, understandingly. I was also hoping to start benefitting from post-css features, such as autoprefixing. But, I can't find out how to get css modules working. I have tried to make this work myself, but I keep getting import errors. Also, I see that there are two different ways to import data. I see that one has to use require instead of import if a variable is needed (like with CSS Modules). I found that I could use the <any> trick referred to here: http://stackoverflow.com/a/36107464/95008. But, I am getting an import error: ``` [node] Error: Cannot find module './../../../../node_modules/css-loader/lib/css-base.js' + stack ``` Are there any solutions or workarounds for this? If not, what are the current roadmap plans in regards to supporting CSS Modules and/or Post-CSS? Currently, CSS modules is the last thing holding me back from introducing this to my tech team, so that we can start converting of my old meteor project.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1391
No description provided.