vue前端框架搭建
说明 跟着迪佬的vue系列文章,自己搭建了前端,特此记录一下,git项目地址 https://gitee.com/WylLoveX/bs-web.git 迪佬文章地址 前端新手Vue3+Vite+Ts+Pinia+Sass项目指北系列文章 —— 系列文章(目录)-CSDN博客 一、vite创建项目 vite官网地址 要求node>18,全局安装yarn npm install -g yarn 创建项目 yarn create vite 启动测试 package.json的scripts属性中配置了启动命令 我们按照配置执行yarn dev就可以启动了 访问界面如下 二、集成element-plus element-plus官网地址 2.1 安装element-plus yarnadd element-plus 2.2 main.ts集成element-plus 在main.ts中添加内容,原来的配置暂时不动 import { createApp } from 'vue' import './style.css' //引入element-plus import Element....