This is a Hostlink nuxt-light framework for Nuxt.
- HostLink nuxt-light framework
- Add
nuxt-light
dependency to your project
# Using npm
npm install --save-dev @hostlink/nuxt-light
- Add
@hostlink/nuxt-light
to themodules
section ofnuxt.config.ts
import pkg from './package.json'
export default defineNuxtConfig({
runtimeConfig: {
public: {
//apiBase: 'your-api-base-url'
appVersion: pkg.version
}
},
ssr:false,
modules: [
'@hostlink/nuxt-light'
]
})
That's it! You can now use nuxt-light 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
<template>
<l-app>
<NuxtLoadingIndicator />
<NuxtPage />
</l-app>
</template>
nuxt.config.ts
app: {
head: {
script: [
{
src: 'https://accounts.google.com/gsi/client',
async: true,
defer: true,
}
]
}
}