nuxt-inline-script
v1.0.4
Published
Bundle script into html head with nuxt shared build config.
Downloads
1
Readme
🚧 Nuxt Inline Script
This module is under development, DO NOT use in production.
Bundle script into html head with nuxt shared build config.
Quick Setup
- Add
nuxt-inline-script
dependency to your project
# Using pnpm
pnpm add -D nuxt-inline-script
# Using yarn
yarn add --dev nuxt-inline-script
# Using npm
npm install --save-dev nuxt-inline-script
- Add
nuxt-inline-script
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: ['nuxt-inline-script'],
inlineScript: {
buildEntry: ['path/to/script']
}
})
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