-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(module): HMR support with @nuxtjs/tailwindcss
#1665
Conversation
src/module.ts
Outdated
} | ||
} | ||
}) | ||
await installModule('@nuxtjs/color-mode') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reverted this for now as I see that a few styles are written for .dark
selector (and some devs may have also done it), so we can do this later separately and ship for v3. (#1289, /cc @benjamincanac)
|
@ineshbose Would you know where this |
|
@nuxtjs/tailwindcss
config: { darkMode: 'class' }, | ||
configPath: [ | ||
configTemplate.dst, | ||
join(nuxt.options.rootDir, 'tailwind.config') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ineshbose Are you sure this join is valid? Shouldn't it be at least tailwind.config.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be fine and resolved here - https://github.com/nuxt-modules/tailwindcss/blob/main/src/resolvers.ts#L17
Any issues being faced?
π Linked issue
nuxt-modules/tailwindcss#682
Resolves #1685
Original PR: #1272
β Type of change
π Description
Will work with
@nuxtjs/tailwindcss@nightly
that is planned to release as 6.12.0 next week (not with 6.11.x due to race conditions and requirement of runningprepare
beforehand).This should no longer be a breaking change. If we continue using inline-config with 6.12.0, the module will still work but developers won't be able to take advantage of instant HMR.