Nuxt.js 是一个基于 Vue.js 的通用应用框架。
服务端渲染(SSR),提高首屏渲染速度 和 SEO
安装
npx create-nuxt-app <项目名>
or
yarn create nuxt-app <项目名>
启动
cd <项目名>
npm run dev
启动成功
打包
npm run build
开启打包分析,nuxt.config.js 配置如下:
build: {
analyze: true
}
analyze
发布
需要的文件:
.nuxt/
static/
server/
nuxt.config.js
package.json