Skip to content

Instantly share code, notes, and snippets.

@edmondyip
Last active October 30, 2019 04:34
Show Gist options
  • Save edmondyip/cd215bbc925f0f0cf94f221670a5a6d7 to your computer and use it in GitHub Desktop.
Save edmondyip/cd215bbc925f0f0cf94f221670a5a6d7 to your computer and use it in GitHub Desktop.
Vue import Threejs plugins
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