@hostlink/nuxt-light
v1.62.1
Published
HostLink Nuxt Light Framework
Downloads
2,850
Readme
nuxt-light
This is a Hostlink nuxt-light framework for Nuxt.
Features
- HostLink nuxt-light framework
Quick Setup
- Add
nuxt-lightdependency to your project
# Using npm
npm install --save-dev @hostlink/nuxt-light- Add
@hostlink/nuxt-lightto themodulessection 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 ✨
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 releaseapp.vue
<template>
<l-app/>
</template>Google Sigin
nuxt.config.ts
app: {
head: {
script: [
{
src: 'https://accounts.google.com/gsi/client',
async: true,
defer: true,
}
]
}
}