CSS isn't loaded in gatsby build state #27795
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
topic: frontend
Relates to frontend issues (e.g. reach/router, gatsby-link, page-loading, asset-loading, navigation)
type: bug
An issue or pull request relating to a bug in Gatsby
Description
I use tailwinds in project
If I command gatsby develop, the css work well
but if I command gastby build and run gatsby serve the css wasn't loaded
Steps to reproduce
I did step by step from https://www.gatsbyjs.com/docs/tailwind-css/, https://www.jerriepelser.com/blog/using-tailwind-with-gatsby/
You can clone my code from https://github.com/dedow/gatsby
Expected result
CSS loaded in production (gastby build && gatsby serve)
Actual result
CSS only loaded in development (gatsby develop), but it isn't loaded after build
Environment
System:
OS: Windows 10 10.0.19041
CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
Binaries:
Node: 15.0.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.9.0
Browsers:
Chrome: 86.0.4240.111
Edge: Spartan (44.19041.423.0), Chromium (86.0.622.58)
npmPackages:
gatsby: ^2.24.63 => 2.25.0
gatsby-plugin-postcss: ^3.0.1 => 3.0.4
gatsby-plugin-typography: ^2.5.11 => 2.5.13
The text was updated successfully, but these errors were encountered: