0.0.9 • Published 4 years ago
nuxt-lazy-scripts v0.0.9
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 jackmarksthomas@googlemail.com
0.0.9
4 years ago