nuxt-lazy-scripts
v0.0.9
Published
Enables conditional loading of scripts to your Nuxt.js project straight from the nuxt config.
Readme
lazy-scripts
Enables conditional loading of scripts to your Nuxt.js project straight from the nuxt config.
Setup
- Add
lazy-scriptsdependency to your project
yarn add lazy-scripts # or npm install lazy-scripts- Add
lazy-scriptsto themodulessection ofnuxt.config.js
{
modules: [
// Simple usage
'lazy-scripts',
// With options
['lazy-scripts', { /* module options */ }]
]
}Development
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
License
Copyright (c) Jack Marks-Thomas [email protected]
