This is a Nuxt Module that makes `definePageMeta` available in Nuxt 2.
[!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
Requiresnuxt/bridge.
@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
@wattanx/page-meta to the modules section of nuxt.config.tsexport default defineNuxtConfig({
modules: ["@wattanx/page-meta"],
});
That’s it! You can now use My Module in your Nuxt app ✨
# 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
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.