Commit Graph

86 Commits

Author SHA1 Message Date
Hugo ATTAL
9162172e03
feat(asset): add ?inline and ?no-inline queries to control inlining (#15454)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: 翠 / green <green@sapphi.red>
2024-11-04 14:50:15 +00:00
Bjorn Lu
8a7af50b5d
feat(html)!: support more asset sources (#11138) 2024-10-31 08:57:16 +01:00
Evan You
7052c8f6fc
chore: update all url references of vitejs.dev to vite.dev (#18276) 2024-10-04 17:30:11 +08:00
GU Yiling
70813c7f05
fix: asset import should skip handling data URIs (#18163) 2024-09-26 17:21:25 +09:00
sunnylost
413c86aa97
fix(html): rewrite assets url in <template> (#17988) 2024-09-02 22:37:55 +02:00
翠 / green
943ece177e
fix: allow getting URL of JS files in publicDir (#17915) 2024-09-01 23:23:19 +08:00
Bjorn Lu
720447ee72
fix: handle encoded base paths (#17577) 2024-08-01 10:53:07 +08:00
Stanislav Lashmanov
d906d3f8e1
fix(css): resolve url aliases with fragments (fix: #17690) (#17691)
Co-authored-by: Stanislav Lashmanov <slashmanov@gitlab.com>
2024-07-23 12:59:36 +02:00
翠 / green
8880bc5a9a
feat(asset): support /*@vite-ignore*/ for new URL(, import.meta.url) (#16590) 2024-05-29 22:17:53 +08:00
翠 / green
fbf69d5f6c
fix: dont resolve imports with malformed URI (#16244) 2024-03-23 10:56:58 +01:00
Bjorn Lu
8617e7638e
fix: skip encode if is data uri (#16233) 2024-03-22 13:46:20 +01:00
Philipp Zerelles
b10d1628d5
fix: encode URLs correctly (fix #15298) (#15311)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-03-12 21:39:57 +08:00
翠 / green
8f74ce4ff3
fix: escape single quote when relative base is used (#16060) 2024-03-05 09:09:59 +01:00
patak
fc2bceb09f
test: consolidate spec names in all playgrounds (#15718) 2024-01-26 08:25:41 +01:00
翠 / green
ed56d96cec
fix(css): .css?url support (#15259) 2024-01-12 09:07:22 +00:00
Bjorn Lu
a621de8dc5
fix: update javascript mime type to text/javascript (#15427) 2024-01-08 16:05:12 +01:00
Nick De Villiers
ea6a7a6eb8
fix(build): decode urls in CSS files (fix #15109) (#15246) 2023-12-12 06:53:01 +01:00
Bjorn Lu
8ad81b470c
fix(html): skip inlining icon and manifest links (#14958)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-12-06 22:08:44 +08:00
翠 / green
2fce647eda
chore: update vitest to 1.0.0-beta.6 (#15194) 2023-11-30 15:37:46 +01:00
翠 / green
ef403c0e61
fix(css): render correct asset url when CSS chunk name is nested (#15154) 2023-11-27 09:21:53 +01:00
patak
b5653d3075
fix(build): mixed external and transpiled srcset (#14888) 2023-11-07 10:01:48 +01:00
patak
0873bae0cf
fix: processNodeUrl for srcset (#14870) 2023-11-06 10:40:25 +00:00
翠 / green
1426f57415
test: use isPreview instead of previewBase (#14878) 2023-11-06 09:32:24 +01:00
Bjorn Lu
4f71ae8736
fix(html)!: align html serving between dev and preview (#14756)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-10-30 21:57:15 +08:00
Bjorn Lu
d6d1ef156a
fix(html): ignore rewrite external urls (#14774) 2023-10-27 17:09:14 +08:00
Bjorn Lu
eef4aaa063
fix(assets): fix svg inline in css url (#14714) 2023-10-20 12:53:45 +00:00
Arnaud Barré
5acda5e10a
feat(build)!: inline SVGs (#14643) 2023-10-19 15:36:29 +08:00
Bjorn Lu
dd610b5f77
fix(assets): make timestamp invalidation lazy (#14675) 2023-10-18 17:15:57 +08:00
Arnaud Barré
f627b91c23
fix(manifest): include assets referenced in html (#14657) 2023-10-18 12:52:36 +08:00
翠 / green
dee6067ec7
feat!: rollup v4 (#14508) 2023-10-18 00:54:47 +08:00
Arnaud Barré
40ee2457a7
fix(hmr): add timestamp for assets in dev (#13371) 2023-10-17 18:39:08 +02:00
翠 / green
4496ae7883
fix(html): srcset pointing image in public dir wasn't working during dev (#14663) 2023-10-17 09:32:53 +02:00
Artur
40fd2d9bf4
fix!: return 404 for resources requests outside the base path (#5657)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-10-12 20:22:36 +02:00
翠 / green
a4a17b8e3e
fix(html): inline style attribute not working in dev (#14592) 2023-10-12 10:33:07 +02:00
翠 / green
0a38e3b395
fix(html): relative paths without leading dot wasn't rewritten (#14591) 2023-10-12 09:06:11 +02:00
翠 / green
bf3cc83929
test: cleanup testConfig.baseRoute and use testConfig.previewBase (#14475) 2023-10-03 19:13:03 +09:00
sapphi-red
fddc1518d1 fix(preview): allow path containing . to fallback to index.html 2023-09-29 14:42:06 +02:00
sapphi-red
dae6d0aa63 fix: allow path ending with .html to fallback to index.html 2023-09-29 14:42:06 +02:00
翠 / green
e9b1e85ab9
feat: use import.meta.url instead of self.location (#14377) 2023-09-15 18:04:44 +08:00
翠 / green
1ae4cbd20f
feat!: allow path containing . to fallback to index.html (#14142) 2023-08-24 13:04:19 +02:00
Naru
f97ef58787
chore: use "kB" everywhere with the correct definition (#14061) 2023-08-21 16:16:05 +08:00
renovate[bot]
5a56941a89
chore(deps): update dependency prettier to v3 (#13759)
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
2023-07-19 09:53:25 +02:00
Haoqun Jiang
c971f26e45
fix(types): narrow down the return type of defineConfig (#13792) 2023-07-17 11:35:12 +02:00
patak
8f109a67bd
test: fix playground config variants (#13725) 2023-07-07 13:09:18 +02:00
翠 / green
3a98558f78
feat: import public non-asset URL (#13422) 2023-06-09 14:09:21 +02:00
Bjorn Lu
2c0fabae49
feat(html): support image set in inline style (#13473) 2023-06-09 11:51:00 +02:00
renovate[bot]
123ef4c47c
fix(deps): update all non-major dependencies (#13059)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-08 11:56:21 +02:00
翠 / green
b28c8472a8
test: rewrite waitForNavigation to waitForEvent('load') (#13413) 2023-06-03 16:23:06 +02:00
Jonas Kaltenbach
d5d9a3155c
fix(assetImportMetaUrl): allow ternary operator in template literal urls (#13121) 2023-05-16 16:34:48 +02:00
翠 / green
eeb0617bed
fix: call tryFsResolve for relative new URL(foo, import.meta.url) (#13142) 2023-05-10 14:58:02 +02:00