Home

Awesome

vue-ssr-hmr-template

a interesting Vue project template

Build Setup

# install dependencies
npm i
npm install supervisor -g

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run app
npm start

Directory

Auto Webpack Entry

getEntries( webpackHotMiddlewareConfig, // String webpackHotMiddlewareConfig, exceptList, // Array except some dir in client isServer // Boolean )

const getEntries = require('./getEntries')
const webpackHotMiddlewareConfig = 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000'

const developmentConf = merge(baseConfig, {
    ...

    entry: getEntries(webpackHotMiddlewareConfig, [], false)

    ...
})

Server Side Render

vue-ssr vue-server-renderer

License

The MIT License