Skip to content

Conversation

jonpreececm
Copy link

Did not update tests, which would be a great addition.

To enable SSR support, the consumer must pass (via options) a string defaultBreakpoint a which to render the page.

Example usage;

import Vue from 'vue';
import MQ from 'vue-match-media/src';

Vue.use(MQ, { defaultBreakpoint: 'only screen and (min-width: 900px)' });

@avblink
Copy link

avblink commented Mar 12, 2021

@drenglish ,

can we merge this? This solves issues for Nuxt.

import Vue from 'vue'
import MQ from 'vue-match-media'

Vue.use(MQ)

@jonpreececm , thank you for this contrib. Just what I was looking for.
I wish I read this before I spent a few hours trying to fix it. :)

Thank you both guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants