Skip to content
Discussion options

You must be logged in to vote

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("../../");

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Exodus102
Comment options

@wongjn
Comment options

wongjn Oct 16, 2025
Collaborator

Answer selected by Exodus102
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