An open API service indexing awesome lists of open source software.

https://github.com/bigcui/webpack5-vue3

vite 和 webpack 双模式开发
https://github.com/bigcui/webpack5-vue3

Last synced: 4 months ago
JSON representation

vite 和 webpack 双模式开发

Awesome Lists containing this project

README

          

乾坤子应用模板
> Vue3 & TypeScript PC端代码库模板

## 基本特性

* 基于`Vue3`
* 语言支持`JavaScript` & `TypeScript`
* 打包工具支持`webpack 5` & `vite 2`
* 支持`SFC` & `Jsx` & `Tsx`
* 样式支持`less` & `sass`
* 解决样式冲突支持`scoped` & `css modules`
* 本地资源支持动态加载
* `Element Plus`支持按需引入
* 多`环境`&`模式`打包配置
* `CI/CD`相关脚本
* `Jsx` & `Tsx`常用功能示例

## Webpack 5打包架构图

![Vue3TsTplWebpack5](https://raw.githubusercontent.com/shien7654321/ImageHosting/master/Images/Vue3TsTplWebpack5.png)

## vite 2打包架构图

![Vue3TsTplVite2](https://raw.githubusercontent.com/shien7654321/ImageHosting/master/Images/Vue3TsTplVite2.png)

## Build Setup

``` bash
# 安装依赖
yarn

# 本地开发(webpack)
yarn start-webpack

# 本地打包(webpack)
yarn build-webpack

# 本地开发(vite)
yarn start-vite

# 本地预览(vite)
yarn preview-vite

# 本地打包(vite)
yarn build-vite

```