Closed richardevcom closed 3 months ago
Name | Link |
---|---|
Latest commit | 6feef565880a0fcf3970f030f3aa12a5a550bfc7 |
Latest deploy log | https://app.netlify.com/sites/nuxt-tailwindcss/deploys/66abbf962ebedb0008b95b63 |
Deploy Preview | https://deploy-preview-885--nuxt-tailwindcss.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Improvement on URL Handling The 'module.ts' file was worked on to enhance the way we handle URLs in our application. By importing the 'withoutTrailingSlash' function from the 'ufo' library, we can ensure that all URLs used in our application do not have any unwanted trailing slashes. This increases the accuracy and functionality of URLs within our application resulting in a better user experience.
Update in View Object Source Property The source ('src') property in the 'view' object has been refreshed to incorporate the 'withoutTrailingSlash' function. This means that our base URLs, as they are defined in our application's settings, will now be free from trailing slashes, making them more precise and reliable when being utilized. This leads to a more robust system and smoother navigation for our users.
I am using nuxt2 and experiencing a smiliar issue. My app tries to handle /_tailwind and loads nuxt instead of the tw viewer. Is this fix only for nuxt3?
I am using nuxt2 and experiencing a smiliar issue. My app tries to handle /_tailwind and loads nuxt instead of the tw viewer. Is this fix only for nuxt3?
Yes, I think so. As far as I know Nuxt 2 baseURL
config differs from Nuxt 3. I'm not sure yet, how the module works on Nuxt 2, but I will try to test it on version 2 today.
Can you submit your reproduction of the issue in #883?
@richardevcom Sorry, I think my issue is not directly related to this fix. I opened #886 Please dont mind my comment here :)
Fixed issue #883:
Cannot find any path matching /_tailwind/
, when usingbaseUrl
:/dev/
. Additionally added conditionalbaseURL
output, where if it matches/
it prefixes empty string''
, making final Tab view src always/dev/_tailwind/
(depending onnuxt.config.ts
) or/_tailwind/
.🔗 Linked issue
Issue #883
❓ Type of change
📚 Description
This change is required to fix Tailwind Config Viewer embedded url by appending missing
baseUrl
setting (if set).