惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

Vite

vite 通过局域网或者端口转发进行访问时特别慢。 - V2EX vite+vue3 有什么插件可以让编译后的 js 被加密保护吗。类似 jsjiami.com 那样 - V2EX vite 有什么插件会把 unicode 转成中文吗 - V2EX 请教: vite + electron.js + vue.js 3 开发桌面软件,无法在 renderer 中加载 C++ node module - V2EX 请教一个 vite 代理的问题 - V2EX 请问各位大佬一个 vite 插件的问题 - V2EX vite 设置生产环境 baseURL 为 /api/,真实请求会自动添加本机 ip 地址吗 - V2EX Vite 执行 build 时如何能够自动添加其他文件到 dist 文件夹? - V2EX element plus 按钮的问题,求帮助 - V2EX 问下前端大佬,VITE+ESLINT+VSCODE 在 编译阶段 不报错怎么解决? - V2EX Vite + React + Ant Design + Tailwind CSS + ESLint + Prettier + TypeScript 最佳实践 - V2EX vite+vue3+ts 自己搭建时候一些步骤及踩坑分享 - V2EX How to use Vite to build all kinds of TypeScript projects, including CSR/SSR/CDN/MonoRepository - V2EX 请问能否通过 vite 插件功能去修改项目中某一个文件的内容或者获取文件内容? - V2EX vite 应该怎么学? - V2EX vite 打包后,好好的功能报错了?有没有懂 vite 打包原理的大佬,求解一下 - V2EX VitePress 如何创建自定义的 UI 主题 - V2EX
Vite+React+TS+Eslint+Prettier starter kit - V2EX
XTTX · 2021-11-13 · via Vite

Vite 用 es-build, 速度就不用多讲了。对比 CRA, 好多地方有不同。 我花了不少时间,搜了不少东西,做了一个自己用的 starter kit.

Vite + React + Typescript + Eslint + Airbnb eslint rules + Airbnb Typescript rules + Prettier + env variable import + Absolute Import Path

https://github.com/jt6677/vite_ts_eslint_prettier_aribnbts

==============================================
!yes, tons of setup and config files.

==============================================
env variable import:

You need to add type in env.d.ts like "readonly VITE_ANYTHING: string"
variables MUST start with VITE_
usage of env variable in your app, no need to import, just use it as a global variable: console.log(import.meta.env.VITE_API_URL)

==============================================
Absolute Import Path

import App from "~/components". ~/ is the absoulte path, equal to ./src

==============================================
reverse Proxy in vite.config.ts