
Vite
Vite学习笔记和使用Vite的问题
清风明月的博客
千言不如一默
展开
-
vite项目在jenkins自动打包报错:failed to load config from ../vite.config.js You installed esbuild on
vite项目在jenkins自动打包报错找不到esbuild-linux-64在window环境开发用的找不到esbuild-windows-64,在linux环境构建需要使用esbuild-linux-64,找不到esbuild-linux-64就会报错实际报错:error during build:11:21:11 Error: 11:21:11 You installed esbuild on another platform than the one you're currently us原创 2022-04-11 20:02:44 · 27896 阅读 · 3 评论 -
vue.3.0+vite+ts的uni-app项目Typescript引起的报错处理
Typescript引起的报错处理1、Non-relative paths are not allowed when ‘baseUrl’ is not set. Did you forget a leading ‘./’?在tsconfig.json文件中加:{ "baseUrl": ".",}2、Cannot find module ‘@/utils/login’ or its corresponding type declarations.ts(2307)在tsconfig.jso原创 2021-12-26 21:35:25 · 6247 阅读 · 0 评论 -
uni-app项目报could not fetch remote https://github.com/dcloudio/uni-preset-vue错解决
由于网络或者域名拦截的引起的用cli创建vue.3.0+vite+ts的uni-app项目时的报错运行命令行 npx degit dcloudio/uni-preset-vue#vite my-vue3-project报如下错误:$ npx degit dcloudio/uni-preset-vue#vite my-vue3-project! could not fetch remote https://github.com/dcloudio/uni-preset-vue! could not f原创 2021-12-26 21:34:02 · 10643 阅读 · 0 评论 -
uni-app系列(一)用cli创建支持Vue3/Vite的uni-app项目
更新HBuilderX编译器到3.3.0+,HBuilderX 3.3.0+的编辑器支持基于 Vite 编译到小程序平台。至此,uni-app在App/H5/小程序全平台支持Vue 3.0开发,且全平台支持Vite编译器。用cli创建支持Vue3/Vite的uni-app项目1、命令行创建 Vue3/Vite 工程# 创建以 javascript 开发的工程 npx degit dcloudio/uni-preset-vue#vite my-vue3-project # 创建以 types原创 2021-12-26 21:31:57 · 3605 阅读 · 2 评论 -
项目中vite1.0升级到vite2.0,vite.config.js 配置报错解决方案整理
把项目中vite1.0升级到vite2.0,遇到一些报错,下面是整理的一些解决方法。1、报错:warning: Duplicate key “server” in object literal vite.config.js:67:4: warning: Duplicate key "server" in object literal 67 │ server: { ╵ ~~~~~~ vite.config.js:29:4: note: The original原创 2021-05-26 10:44:36 · 12778 阅读 · 0 评论 -
Vite实现原理详解-学习笔记
Vite是一个面向现代浏览器的更轻、更快的web应用开发工具,它是基于ECMAScript标准原生模块系统(ES Modules)实现,使用是为了解决Webpack在开发阶段使用webpack-server冷启动时间过长以及Webpack对html热更新慢的问题。Vite创建的项目就一个基于Vue3.0的应用,相比Vue CLI创建的项目少了很多配置文件和依赖。Vite创建的项目开发依赖Vite@vue/compiler-sfcVite是模拟实现的命令行工具,@vue/compiler-sfc用原创 2021-04-22 17:51:47 · 1260 阅读 · 0 评论