Created
May 3, 2019 13:30
-
-
Save tomshaw/064788a7b6eb9419ecb53ed745a466bb to your computer and use it in GitHub Desktop.
Nuxt.js raf-engine plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RAFEngine from 'raf-engine'; | |
const engine = new RAFEngine(); | |
export default (ctx, inject) => { | |
ctx.$engine = engine; | |
inject('engine', engine); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment