0.0.9 • Published 3 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-scripts
dependency to your project
yarn add lazy-scripts # or npm install lazy-scripts
- Add
lazy-scripts
to themodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'lazy-scripts',
// With options
['lazy-scripts', { /* module options */ }]
]
}
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Jack Marks-Thomas jackmarksthomas@googlemail.com
0.0.9
3 years ago