1 Star 0 Fork 1

CHENJIAMIAN / Nuxt-Project-Guide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Nuxt.js基础知识

Nuxt.js 集成了以下组件/框架,用于开发完整而强大的 Web 应用:

  • Vue 2
  • Vue-Router
  • Vuex (当配置了 Vuex 状态树配置项 时才会引入)
  • Vue 服务器端渲染 (排除使用 mode: 'spa')
  • Vue-Meta 压缩并 gzip 后,总代码大小为:57kb (如果使用了 Vuex 特性的话为 60kb)。

另外,Nuxt.js 使用 Webpack 和 vue-loader 、 babel-loader 来处理代码的自动化构建工作(如打包、代码分层、压缩等等)。

组件的运行流程

别名	     目录

~ 或 @	    srcDir

~~ 或 @@	rootDir

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000, 启动时nuxt,它将启动具有热更新加载的开发服务器,并且Vue 服务器端渲染配置为自动为服务器呈现应用程序。
$ yarn run dev

# build for production and launch server
$ yarn run build
$ yarn start

# 为基于 Vue.js 的应用提供生成对应的静态站点的功能 (预渲染)。是向开发集成各种微服务(Microservices)的 Web 应用迈开的新一步
$ yarn run generate

This repository contains the example code for the Nuxt.js Fundamentals course.

For detailed explanation on how things work, checkout Nuxt.js docs.

空文件

简介

Nuxt.js 项目 | 目录结构说明 | 配置说明 | 模板 | 用Nuxt创建FE项目模板 展开 收起
JavaScript 等 3 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/chenjiamian/Nuxt-Project-Guide.git
git@gitee.com:chenjiamian/Nuxt-Project-Guide.git
chenjiamian
Nuxt-Project-Guide
Nuxt-Project-Guide
master

搜索帮助