Seanitzel
Seanitzel
NNuxt
Created by Seanitzel on 12/6/2024 in #❓・help
A way to disable layer plugins?
@kapa.ai It doesn't work because there is no app.css...
15 replies
NNuxt
Created by Seanitzel on 12/6/2024 in #❓・help
A way to disable layer plugins?
@kapa.ai Actually there was a simple solution in one of the issues you tagged(which you missed): https://github.com/nuxt/nuxt/issues/12887#issuecomment-1397297712
import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
hooks: {
'app:resolve'(app) {
app.plugins = app.plugins.filter(p => !p.src.includes('/my/plugin/dir')
}
}
})
import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
hooks: {
'app:resolve'(app) {
app.plugins = app.plugins.filter(p => !p.src.includes('/my/plugin/dir')
}
}
})
It works as expected. But now im having the same issue with css files i register through the layers css property in the nuxt config, how can i disable them as well?
15 replies