running yarn build with @zeit/next-sass and using css-modules should result in ALL css being compiled and available in the build site.
That's not the case. Only CSS for a single page / component is included, everything else is unstyled.
yarn buildyarn startlocalhost:3000/localhost:3000/testLikely, the button is unstyled and the headline is styled.
My main project has hundreds of components, and right now, only one style is applied for the entire site. If components in the example was larger, there would still be only one styled component.
Note that this issue exists when using the configuration in #168 as well.
the same issue when I use next-less without cssModule.
Did you upgrade to the latest version?
upgrade next-less to the latest version solved my problem, thank you very much!
Most helpful comment
Did you upgrade to the latest version?