# 乐宝 **Repository Path**: chao-z/lebao ## Basic Information - **Project Name**: 乐宝 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-17 - **Last Updated**: 2022-05-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vite+vue2项目模板 ## 介绍 集成Vite、vue2、vueRouter、Vuex、sass项目开发模板 注意: - 由于vue官网脚手架[vue-cli](https://cli.vuejs.org/zh/index.html)内置的构建工具webpack打包太慢,所以改为vite工具。 - [vite](https://vitejs.cn/)官网脚手架初始化的项目是基于vue3,我们需要改为vue2。 ## 使用 1. 克隆 地址:https://gitee.com/ww24kobe/vite-vue2-vueRouter-vuex-sass ``` git clone https://gitee.com/ww24kobe/vite-vue2-vueRouter-vuex-sass.git ``` > 仓库名太长,自己改名 2. 进入项目目录,安装依赖,运行项目 ``` npm install npm run dev ``` 3. 打包项目,预览项目 ``` npm run build npm run preview ```