Skip to content

SuiXiangjun/vue_ssr

 
 

Repository files navigation

基于vue-cli的vue服务端渲染

vue-cli, vue-server-renderer, webpack4, koa

Build Setup

# install dependencies
npm install

# 启动开发环境client
npm run dev:client

# 启动开发环境server
npm run dev:server

# 启动开发环境
npm run dev

# 生产环境
npm run build && npm run start

# 打包可视化视图,用于分析打包后的文件
npm run build --report

在使用mini-css-webpack-plugin时,build:server会报错, 因此使用的extract-text-webpack-plugin 4.0.0-beta.0

About

vue 服务端渲染

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • Vue 9.7%
  • HTML 1.8%