After working with CSS in a single file for quite some time on my current project, I've realized it has become too lengthy and difficult to manage. To make editing easier, I am now looking to modularize my CSS code. While I have experience doing this on Wordpress, I am new to implementing it on an Express app. I have attempted to use postcss as I would with Wordpress, but I'm facing challenges and finding the npm documentation confusing.
Any assistance would be greatly appreciated.
Here is a snippet of my app.js file:
...
My header file includes the following:
...
In my CSS module file, I import various modules:
...
The structure of my files is organized as follows:
...