NuxtN
Nuxt4y ago
11 replies
npldev

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]",
        }
      }
    },
  },

But i can't find the equivalent for nuxt3, any ideas ?
Was this page helpful?