Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielroe/nuxt-zero-js
Remove all client-side JS from your Nuxt 3 app
https://github.com/danielroe/nuxt-zero-js
nuxt nuxt-module performance
Last synced: 3 days ago
JSON representation
Remove all client-side JS from your Nuxt 3 app
- Host: GitHub
- URL: https://github.com/danielroe/nuxt-zero-js
- Owner: danielroe
- License: mit
- Created: 2022-09-02T16:09:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T16:20:33.000Z (9 months ago)
- Last Synced: 2024-04-13T17:53:46.455Z (9 months ago)
- Topics: nuxt, nuxt-module, performance
- Language: TypeScript
- Homepage:
- Size: 919 KB
- Stars: 216
- Watchers: 3
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
> [!IMPORTANT]
> This has been built into Nuxt since v3 - just use `features.noScripts`--
# Nuxt Zero JS
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]> Remove all client-side JS from your [Nuxt 3](https://v3.nuxtjs.org) app
- [✨ Changelog](https://github.com/danielroe/nuxt-zero-js/blob/main/CHANGELOG.md)
- [▶️ Online playground](https://stackblitz.com/github/danielroe/nuxt-zero-js/tree/main/playground)## Features
**⚠️ `nuxt-zero-js` is under active development. ⚠️**
- ✨ Completely removes preload/prefetch hints for JS bundle
- 🚀 Removes `` tag for payload and JS bundle
- 🙏 Leaves your own head tags intactFollow [this issue](https://github.com/nuxt/framework/issues/7156) for more information, and do comment if you'd like to see this feature in Nuxt itself.
## Usage
```js
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](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Stub module with `pnpm dev:prepare`
- Run `pnpm dev` to start [playground](./playground) in development mode## License
Made with ❤️
Published under the [MIT License](./LICENCE).
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/nuxt-zero-js?style=flat-square
[npm-version-href]: https://npmjs.com/package/nuxt-zero-js
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-zero-js?style=flat-square
[npm-downloads-href]: https://npm.chart.dev/nuxt-zero-js
[github-actions-src]: https://img.shields.io/github/workflow/status/danielroe/nuxt-zero-js/ci/main?style=flat-square
[github-actions-href]: https://github.com/danielroe/nuxt-zero-js/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/gh/danielroe/nuxt-zero-js/main?style=flat-square
[codecov-href]: https://codecov.io/gh/danielroe/nuxt-zero-js