Fix path reference in nuxt.config.ts#2512
Open
gyohza wants to merge 1 commit into
Open
Conversation
|
@gyohza is attempting to deploy a commit to the Tailwind Labs Team on Vercel. A member of the Team first needs to authorize it. |
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The documentation change keeps the CSS file creation location intact while updating the Nuxt configuration reference to the path reported to resolve correctly in Nuxt 4. Reviews (1): Last reviewed commit: "Fix path reference in nuxt.config.ts" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix failing Nuxt configuration path reference
When installing Tailwind in Nuxt 4, the guide tells us to add
./app/assets/css/main.cssto thenuxt.config.ts. This, however, results in an error:The fix
Did some tests and it seems
./defaults to inside theapp/directory. Changing to./assets/css/main.css(app/removed) fixed the problem. Using~/assets/css/main.cssandassets/css/main.cssalso work, and it's actually a little more idiomatic:See official docs.
Notes
I deliberately rephrased the instruction so I could fit a reference to the Nuxt docs + added a comment to the code snippet explaining that
assetsis an alias.Please let me know whether you think that makes sense or if you want to request some changes.