This package has been deprecated

Author message:

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

nuxt-zero-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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: {
  //   enabled: true,
  // },

That's it!

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • 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.

Package Sidebar

Install

npm i nuxt-zero-js

Weekly Downloads

6

Version

0.1.3

License

MIT

Unpacked Size

8.04 kB

Total Files

10

Last publish

Collaborators

  • danielroe