摘要: 1. 安装路由 npm i vue-router@next -D 2.安装Vuex npm i vuex@next -D 3.安装sass npm i -D sass 4.vscode 支持 eslint npm install --save-dev eslint eslint-loader bab 阅读全文
posted @ 2021-03-13 14:32 bignewbie 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1.安装 vue-router@next npm i vue-router@next -D 2.使用步骤 -1. 创建 router.js import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router 阅读全文
posted @ 2021-03-13 14:22 bignewbie 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 1.vite vite 是 Vue 作者开发的一款意图取代webpack的工具 原理:利用 ES6 中 import 会发送请求去加载文件的特点,拦截请求,做一些预编译,减少 webpack 冗余的打包时间 2. 安装 create -vite -app - 1.如果已经安装过旧版,先卸载 npm 阅读全文
posted @ 2021-03-13 14:08 bignewbie 阅读(112) 评论(0) 推荐(0) 编辑