hello-world
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
then visit http://localhost:3000 for ssr development
Take care:
npm run serve will start two services:
- static service running by npm run dev:client command. It use to hot-reloads static resources
- SSR service running by npm run dev:server command. this
others:
- You can set static service port by setting env STATIC_PORT=xxxx on package.json's scripts。
- If directly visit http://localhost:8090,then into the CSR mode. The html is not produced by SSR.
CSR mode for development
npm run dev:clientSSR local server for production
npm run build
npm run serveCompiles and minifies for production
npm run build
npm run build command will execute two commands as shown below.
- npm run build:client generate files for client render
- npm run build:server generate files for server render
Code lints
only lints
npm run lintLints and fixes
npm run lint:fix
Customize configuration
On this page
Languages
JavaScript77.7%Vue18.2%HTML4.1%
Contributors
Created February 17, 2022
Updated November 14, 2024