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

CSS file not copying into /dist/assets/css on build #47

Closed
evolve2k opened this issue Jun 23, 2021 · 3 comments
Closed

CSS file not copying into /dist/assets/css on build #47

evolve2k opened this issue Jun 23, 2021 · 3 comments

Comments

@evolve2k
Copy link

evolve2k commented Jun 23, 2021

When I spin up the server with $ npm run dev it was very clear that the CSS was not loading. Note I have not yet made any changes to the repo. Here's how it looks as deployed.

Fullscreen_23_6_21__11_57_am

Sure enough looking in dist after running npm run build and the css is not generating.

main_css_—_amorc-static-starter

Can you work out why main.css is not compiling into /dist?

For anyone else following:
The web console also provided this error:

The resource from “http://localhost:8888/assets/css/main.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

Which some web searching revealed usually occurs when a file is not found.

@evolve2k
Copy link
Author

evolve2k commented Jun 23, 2021

Ok it looks like it's an issue with the tailwind JIT commit.

I wound back to the commit before it and was able to build everything correctly locally.

WEIRDLY.. once I then wound forward to main again, now the CSS is there, locally.

There is still issues when this deploys as I shared before [example]

@evolve2k
Copy link
Author

evolve2k commented Jun 24, 2021

WORKAROUND: For anyone wanting to use this starter kit out of the box before this is fixed, roll back to the commit before tailwind JIT was added and use that as every thing works out of the box and it deploys successfully.

@roybarber
Copy link
Owner

@evolve2k This is now resolved. Tailwind updated to 2.2 where JIT is now part of the release.

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

No branches or pull requests

2 participants