Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If disable css modules - Imported css is working only in development mode, but not working in production mode #206

Closed
RomanBON opened this issue Nov 29, 2018 · 3 comments
Labels

Comments

@RomanBON
Copy link

bug

Expected Behavior

I set css-modules to disable, change scss imports. I want my component to work the same in both production and development mode.

Actual Behavior

it's working only in development mode.

Your Environment

  • Ubuntu 18.04.1 LTS
  • Chrome Version 70.0.3538.77 (Official Build) (64-bit) on Linux
  • v10.10.0 node
@ilkertuna
Copy link

I had the same problem.

In development mode, css modules are included in to bundles.
However, in production mode, css modules are not included in to bundles.

Dummy Solution:
include each css file in renderHtml.js
i.e.

Better Solution:
create the css folder in the public folder directory, then include all of them like @wellyshen did, (You can inspect server.js and renderHtml.js to get an idea).

@wellyshen
Copy link
Owner

@RomanBON Thank you, I will spend time to check it.

@wellyshen wellyshen added the bug label Dec 3, 2018
@wellyshen
Copy link
Owner

@RomanBON Sorry, it is fixed in this version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants