-
Notifications
You must be signed in to change notification settings - Fork 319
[next-css] Not finding style.css in production #177
Comments
Dang it... I always somehow miss releases on mono repos 😅 Thanks @timneutkens! Seems to be working. |
@timneutkens Actually, it seems I was fooled. I tested with Running a clean |
I was able to reproduce this issue on this repo, https://github.com/stramel/next-css-issue-177 Steps to Reproduce:
Expected Result: Actual Result: |
I found that I can workaround this in my case by moving the CSS to the |
@stramel your workaround worked for me as well. For some reason, you can't import css inside |
I had |
I have the same problem |
Fixed it by including my CSS files in |
"/_next/static/style.css" doesn't get extracted in production when css files are imported from . Known issue in vercel/next-plugins#177. Resolution: Upgrade to latest verison
Attempting to build for production and the styling is failing using
next-css
.Steps I'm using to test "production" build:
NODE_ENV=production next build
NODE_ENV=production node server.js
Here are my config files https://gist.github.com/stramel/bfcf2c8d2572f92a344bfc6247a51f08
This is my server file.
https://gist.github.com/stramel/7f2b66a51b5557d8f5d00f2f4a7078b7
My
index.css
file contains:This is my
_document.js
,_app.js
,index.js
file.https://gist.github.com/stramel/67b76f1c13445709b112f0902a4042d3
Using Next.js v6.0.3 with next-css v0.1.5
I will attempt to create a reproducible repo for you.
The text was updated successfully, but these errors were encountered: