# Universal Vue

Build universal Vue applications with ease

# Getting started

Install

Before install, make sure your project use vue-router in history mode.

This is needed to make SSR work correctly.

vue add @uvue/ssr

This plugins add commands to run or build your application in SSR mode:

Start a development server with HMR

npm run ssr:serve

Build for production

npm run ssr:build

Start in production mode (need a npm run ssr:build before)

npm run ssr:start

Generate a static website

npm run ssr:static

Try to fix code to be SSR compatible

npm run ssr:fix

Try to fix Vuex states to be SSR compatible

npm run ssr:fix-vuex

TIP

The serve and build commands are still available to run your application in SPA mode

# Alternatives

# Live SSR

# Static websites

# Starter

# MIT License

Copyright 2018-Present Simon Babay <simon@babay.fr>

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.