Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

I install tailwind on my Tailwind folder then i want to use the output.css outside the Tailwind folder #19128

Unanswered
Exodus102 asked this question in Help
Discussion options

Hi, I'm having this issue with v4.1 i don't know what to do with my tailwind installation. When i put my php files together on the src/output.css it's working but if place my php file outside where the Tailwind/src/output.css it's not working anymore is there anyone who can fix this?

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Consider providing a git repo that reproduces the issue and we can take a look for you.

You must be logged in to vote
2 replies
Comment options

Comment options

wongjn Oct 16, 2025
Collaborator

Conventionally, package.json, package-lock.json and node_modules would be in the root of the project. Thus, consider:

  1. Moving package.json and package-lock.json beside index.php
  2. Removing Tailwind/node_modules
  3. Rerun npm install
  4. Update the CSS paths in the scripts.dev command

Otherwise if you want to keep those files where they are, use source() to redefine the base path:

@import "tailwindcss" source("../../");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /