mmoollllee / nuxt-protected-mailto

Nuxt component to protect email from spam-bots without sacrificing usability.
https://mmoollllee.github.io/nuxt-protected-mailto/
42 stars 3 forks source link

Nuxt 3 Support #7

Open notflip opened 1 year ago

notflip commented 1 year ago

Hi, I see that the build config is invalid for Nuxt 3, any idea if this tool can be used with Nuxt 3?

build: {
    html: {
      minify: {
        decodeEntities: false
      }
    }
  }
pnoster commented 1 month ago

Hi, I was able to use the Mailto component in Nuxt 3 by just copying it in the components folder and installing the is-email package. So, to add full Nuxt 3 support, an updated module syntax is needed but the Mailto component may be left as-is.

mmoollllee commented 1 month ago

@pnoster thanks for your input!

Please check the current release made with the current nuxt-kit to work with nuxt3.

Please let me know if everything works as expected or not. The nuxi module add command might not work yet, so please use npm install nuxt-protected-mailto first and add the module manually in your nuxt.config.ts.