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

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

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 打包后,好好的功能报错了?有没有懂 vite 打包原理的大佬,求解一下 - V2EX Vite+React+TS+Eslint+Prettier starter kit - V2EX VitePress 如何创建自定义的 UI 主题 - V2EX
vite 应该怎么学? - V2EX
Leviathann · 2022-01-09 · via Vite

尝试配了一下,发现很多东西官网都没讲
有的配置还和 rollup 有重叠

比如我想把打包的东西都输出到一个文件夹(而不是默认的 dist + dist/asset )并且自定义一个打包目标文件名,在官网搜了半天没搜到怎么配,尝试配 buildRollupOptions ,改了 file 又报错,又根据报错改了几个配置项才发现原来需要把 dir 和 manualChunks 设为 undefined 来把 vite 默认的配置覆盖掉才行

怎么才能知道 vite 默认的 rollup 配置是啥?必须看源码吗?

而且感觉前端的工具链有很多重叠的功能,esbuild 可以设置编译目标,tsc 也可以,rollup 也可以用 babel 插件做

tsc 直接指定版本就行( es5 )而 esbuild 和 babel 要用个奇怪的 query 字符串,指定浏览器版本或者占有率啥的?

另外如果想指定输入和输出的 html 文件名又该怎么做?

官网没提,翻 rollup 的文档发现官方的实例的 entry 都是 js 文件,试了一下手动在 rollupOptions 指定 input ,但是又和 output 的 file 冲突?