Vuex extension that allows making window size as computed property.
npm install vuex-viewport
Add a module and plugin to your store.
import { viewport, viewportPlugin } from 'vuex-viewport';
const store = new Vuex.Store({
modules: {
viewport
},
plugins: [
viewportPlugin()
]
});