laracoft's avatar

Debugging tailwind

  1. I was using the CDN for convenience, HTML renders perfectly
  2. But CDN is large, so I removed it to switch to npm run build instead
  3. But the app.css produced by npm run build makes the HTML render incorrectly
  4. How do I get npm run build to list out all the files that tailwind scanned?
1 like
3 replies
vincent15000's avatar

npm run build does this automatically.

Why do you think that the app.css is incorrectly formed ?

app.css is not the output file while building the manifest.

You probably don't declare the right files in your HTML head.

Are you using Laravel ?

vincent15000's avatar

Sorry, I didn't realize ... npm run build is useful only when you install TailwindCSS locally.

If you are using the CND, you don't need to run npm run build.

Please or to participate in this conversation.