AlexandreBonaventure / vue-mq

📱 💻 Define your breakpoints and build responsive design semantically and declaratively in a mobile-first way with Vue.
https://alexandrebonaventure.github.io/vue-mq
MIT License
537 stars 59 forks source link

How to use the VueMq package without webpack and npm? #77

Open HHKP1 opened 3 years ago

HHKP1 commented 3 years ago

Is it possible to use the VueMq package without webpack and npm? Add VueMq via a script in html?

craigrileyuk commented 2 years ago

Yes. You can use a CDN to include it in your Vue2 app:

<script src="https://unpkg.com/vue-mq@1.0.1/dist/vue-mq.min.js"></script>

and the plugin is then made available on the window.vueMq object.