@hostlink/nuxt-light
TypeScript icon, indicating that this package has built-in type declarations

1.21.12 • Public • Published

nuxt-light

npm version npm downloads License Nuxt

This is a Hostlink nuxt-light framework for Nuxt.

Features

  • HostLink nuxt-light framework

Quick Setup

  1. Add nuxt-light dependency to your project
# Using npm
npm install --save-dev @hostlink/nuxt-light
  1. Add @hostlink/nuxt-light to the modules section of nuxt.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 release

app.vue

<template>
  <l-app>
    <NuxtLoadingIndicator />
    <NuxtPage />
  </l-app>
</template>

Google Sigin

nuxt.config.ts

 app: {
    head: {
      script: [
        {
          src: 'https://accounts.google.com/gsi/client',
          async: true,
          defer: true,
        }
      ]
    }
  }

Readme

Keywords

none

Package Sidebar

Install

npm i @hostlink/nuxt-light

Weekly Downloads

478

Version

1.21.12

License

MIT

Unpacked Size

536 kB

Total Files

204

Last publish

Collaborators

  • mathsgod