Nathan / npldev
Nathan / npldev
NNuxt
Created by Nathan / npldev on 1/29/2025 in #❓・help
How to set basePath to relative ?
Hi, I'm looking for a way to change the /_nuxt/ path in my static build to ./_nuxt/ I found this in the docs: https://nuxt.com/docs/api/nuxt-config#baseurl, but when I change it to './', it gets rewritten in the build to '/'.
6 replies
NNuxt
Created by Nathan / npldev on 12/1/2022 in #❓・help
How to Hash css classes for production ?
Hey ! I'm look to hash my css classes for production only, i finded that was possible with nuxt2 with :
build: {
/*
** You can extend webpack config here
*/
loaders: {
cssModules: {
modules: {
localIdentName: "[local]--[Frida]_[hash:base64:4]",
}
}
},
},
build: {
/*
** You can extend webpack config here
*/
loaders: {
cssModules: {
modules: {
localIdentName: "[local]--[Frida]_[hash:base64:4]",
}
}
},
},
But i can't find the equivalent for nuxt3, any ideas ?
12 replies