[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-zero-js. Remove all client-side JS from your Nuxt 3 app
nuxt nuxt-module performance
0

Configure Feed

Select the types of activity you want to include in your feed.

TypeScript 63.2%
JavaScript 11.9%
Vue 2.7%
Other 22.3%
290 8 3

Clone this repository

https://git.vm.fail/danielroe.dev/nuxt-zero-js https://git.vm.fail/did:plc:nduv3vl2y3cbrh4v2vg2xz7q
ssh://git@knot1.tangled.sh:2222/danielroe.dev/nuxt-zero-js ssh://git@knot1.tangled.sh:2222/did:plc:nduv3vl2y3cbrh4v2vg2xz7q

For self-hosted knots, clone URLs may differ based on your setup.


README.md
IMPORTANT

This has been built into Nuxt since v3 - just use features.noScripts

--

Nuxt Zero JS#

npm version npm downloads Github Actions Codecov

Remove all client-side JS from your Nuxt 3 app

Features#

⚠️ nuxt-zero-js is under active development. ⚠️

  • ✨ Completely removes preload/prefetch hints for JS bundle
  • 🚀 Removes <script> tag for payload and JS bundle
  • 🙏 Leaves your own head tags intact

Follow this issue for more information, and do comment if you'd like to see this feature in Nuxt itself.

Usage#

export default defineNuxtConfig({
  modules: ['nuxt-zero-js'],
  //
  // By default the module is disabled in development for better
  // DX but you can force it to be enabled if you would like.
  //
  // zeroJs: {
  //   disabled: false,
  // },

That's it!

💻 Development#

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Stub module with pnpm dev:prepare
  • Run pnpm dev to start playground in development mode

License#

Made with ❤️

Published under the MIT License.