0.0.9 • Published 3 years ago

nuxt-lazy-scripts v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

lazy-scripts

npm version npm downloads Github Actions CI Codecov License

Enables conditional loading of scripts to your Nuxt.js project straight from the nuxt config.

📖 Release Notes

Setup

  1. Add lazy-scripts dependency to your project
yarn add lazy-scripts # or npm install lazy-scripts
  1. Add lazy-scripts to the modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    'lazy-scripts',

    // With options
    ['lazy-scripts', { /* module options */ }]
  ]
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) Jack Marks-Thomas jackmarksthomas@googlemail.com