shershen08 / vue-masonry

💠 Vue.js directive for masonry blocks layouting ✅
MIT License
674 stars 81 forks source link

Importing Masonry instead of using the CDN #85

Closed chopfitzroy closed 5 years ago

chopfitzroy commented 5 years ago

Curious how I can get this working by importing Masonry like so:

import Masonry from 'masonry-layout';

Instead of using the CDN and having it global, anyway to pass VueMasonryPlugin the Masonry instance?

shershen08 commented 5 years ago

I'm not quite sure what you're trying to achieve currently masonry is imported as a module within the plugin code - https://github.com/shershen08/vue-masonry/blob/master/package.json#L16

shershen08 commented 5 years ago

closing for now since now activity @CrashyBang feel free to reopen or ping me on twitter