//page-meta-modulebywattanx

page-meta-module

This is a Nuxt Module that makes `definePageMeta` available in Nuxt 2.

3
0
3
10
TypeScript

Page Meta Module

[!IMPORTANT]
This feature has already been incorporated into @nuxt/bridge.

This module provides the definePageMeta macro in Nuxt 2 as well.

undefinedWarningundefined
This library is in active development. Use at your own risk.

undefinedWarningundefined
Requires nuxt/bridge.

Quick Setup

  1. Add @wattanx/page-meta dependency to your project
# Using pnpm
pnpm add -D @wattanx/page-meta

# Using yarn
yarn add --dev @wattanx/page-meta

# Using npm
npm install --save-dev @wattanx/page-meta
  1. Add @wattanx/page-meta to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@wattanx/page-meta"],
});

That’s it! You can now use My Module in your Nuxt app ✨

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
[beta]v0.14.0