You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that it uses Webpack instead of swc due to .babelrc.
Describe your issue
When I add pageExtensions option to next.config.js, both content and safelist don't generate specified classnames. When I rolled back to default next config, they start working.
I suspected next's pageExtensions config somewhat changes how to resolve those pages, but still have no idea why safelist is not working either. I'm not sure where does this issue come from, but because of safelist I though it also can be an issue of tailwindcss.
The text was updated successfully, but these errors were encountered:
What version of Tailwind CSS are you using?
What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using?
What browser are you using?
What operating system are you using?
Reproduction URL
pageExtensions: ['page.tsx'],
onnext.config.js
(Refer to https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions#including-non-page-files-in-the-pages-directory)pages/index.tsx
topages/index.page.tsx
Webpack
instead ofswc
due to.babelrc
.Describe your issue
pageExtensions
option to next.config.js, bothcontent
andsafelist
don't generate specified classnames. When I rolled back to default next config, they start working.safelist
is not working either. I'm not sure where does this issue come from, but because of safelist I though it also can be an issue of tailwindcss.The text was updated successfully, but these errors were encountered: