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
We are investigating a bug report filed on our module here : nuxt-modules/security#576
We are able to reproduce based on OP's link.
We notice that the TailwindCSS utilities layer is absent from the production build.
This is related to the fact that our module has a { removeLoggers: true } default option set. If we set { removeLoggers: false }, the bug disappears and the utilities layer is present in the production build.
Additional context
Update.
Our investigation has found that the root cause of this issue is because we are setting the following option in nuxt.config.ts
vite : {build : {minify: true}}
We are updating the title and description of the issue to further clarify that when vite.build.minify is set via defineNuxtConfig, the Tailwind utilities layer will be absent from the production build.
The text was updated successfully, but these errors were encountered:
vejja
changed the title
Tailwind utilities layer absent in production build when console and debugger statements removed by Vite
[v3] Tailwind utilities layer absent in production build when console and debugger statements removed by Vite
Nov 30, 2024
vejja
changed the title
[v3] Tailwind utilities layer absent in production build when console and debugger statements removed by Vite
[v3] Tailwind utilities layer absent in production build when vite.build.minify is used
Nov 30, 2024
@benjamincanac I did open an issue there : tailwindlabs/tailwindcss#15278
Just pinged you there because the Tailwind guys are making some comments that go far beyond my abilities
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.0-alpha.9
Reproduction
https://github.com/siyosu/nuxt-ui-v3
https://nuxt-ui-v3.vercel.app/
Courtesy @siyosu
Description
Hi, Nuxt-Security team here
We are investigating a bug report filed on our module here : nuxt-modules/security#576
We are able to reproduce based on OP's link.
We notice that the TailwindCSS
utilities
layer is absent from the production build.This is related to the fact that our module has a
{ removeLoggers: true }
default option set. If we set{ removeLoggers: false }
, the bug disappears and theutilities
layer is present in the production build.Additional context
Update.
Our investigation has found that the root cause of this issue is because we are setting the following option in
nuxt.config.ts
We are updating the title and description of the issue to further clarify that when
vite.build.minify
is set viadefineNuxtConfig
, the Tailwindutilities
layer will be absent from the production build.The text was updated successfully, but these errors were encountered: