- 选用nuxt技术栈,减少了webpack的繁琐配置,开箱即用。
- nuxt既可以独立开发然后直接部署运行,也可以搭配原有的node后端比如koa等,充当一个页面渲染的引擎。
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate