[Vuejs]-How to integrate littlefoot.js with Vue.js (Nuxt.js)?

0👍

I always do either of the following:

1: Import module in nuxt.config.js

In cmd/terminal

npm install --save littlefoot 

in case you forgot

// nuxt.config.js
.
.
modules: [
  'littlefoot'
],
.
.

2: Create a plugin in the /plugins/ directory

Create a file ~/plugins/littlefoot.js

import Vue from 'vue'
import littlefoot from 'littlefoot'

Vue.use(littlefoot)

Leave a comment