Last active
October 30, 2019 04:34
-
-
Save edmondyip/cd215bbc925f0f0cf94f221670a5a6d7 to your computer and use it in GitHub Desktop.
Vue import Threejs plugins
This file contains 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 Vue from 'vue'; | |
import * as THREE from 'three'; | |
Vue.use({ | |
install(Vue) { | |
Vue.protoype.$THREE = THREE; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment