Commit Graph

339 Commits

Author SHA1 Message Date
Bjorn Lu
c6c2fbbd9f
docs: clarify preprocessor options extension (#7280) 2022-03-11 22:16:01 +01:00
Bjorn Lu
76bbcd0998
docs: add config env var info (#7180) 2022-03-05 16:14:27 +01:00
Dominik G
6cb0647834
fix: revert #6340, definePlugin tests, warning box (#7174)
Co-authored-by: patak-dev <matias.capeletto@gmail.com>
2022-03-04 21:16:49 +01:00
clocher Zhong
ce07a0ad6a
feat(config): hmr add disable port config (#6624)
Co-authored-by: zhongyi <zhongyi@kuaishou.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-03-03 08:44:14 +01:00
ocavue
e2349569cf
docs: add backticks (#6945) 2022-02-16 14:20:45 +01:00
ygj6
e385346c53
feat: custom manifest file name (#6667) 2022-02-14 04:49:36 +01:00
Gautier Ben Aïm
678e0f27aa
docs(config): added an example about proxying websockets (#6646) 2022-01-27 17:07:32 +01:00
Samuel Alev
0e164f80ee
feat: add lerna workspace support to searchForWorkspaceRoot (#6270) 2022-01-26 14:09:21 +01:00
poyoho
8eb9e10fee
docs: notes vite.config replace __dirname/__filename (#6551) 2022-01-18 11:28:31 +01:00
Niputi
870e1c0762
fix: update preview port to 4173 (#6330) 2022-01-16 22:31:05 +01:00
Arnaud Barré
fb7ba5353b
refactor: enforce a cache directory (#6415) 2022-01-16 21:40:15 +01:00
OneNail
6408a3ab9b
feat: add customResolver option to resolve.alias (#5876) 2022-01-11 23:08:09 +01:00
poyoho
133fcea522
feat(worker): support worker format, plugins and rollupOptions (fix #6191) (#6351) 2022-01-02 09:36:01 +01:00
Sean Watters
0f393a1ac7
docs(lib-mode): add a caveat to the build.minify docs for 'es' format (#6314) 2021-12-30 07:10:32 +01:00
itibbers
dcb1df4d82
docs: add frontmatters to fix __VP_STATIC_START__ (#6283) 2021-12-28 09:30:32 +01:00
patak
80e8e93921
chore: format note (#6218) 2021-12-21 14:16:03 +01:00
Jeff Yang
8e65babc26
docs(config): note for TS + define [ci skip] (#6153)
Co-authored-by: bluwy <bluwy@users.noreply.github.com>
2021-12-21 12:59:48 +01:00
shj
ae3a443578
docs: remove newlines & use main branch instead of master (#5957) 2021-12-03 20:51:25 +01:00
Jeff Yang
efec70f816
docs: add optimizeDeps.esbuildOptions & remove optimizeDeps.keepNames [ci skip] (#5905) 2021-11-30 22:17:29 +01:00
Jeff Yang
c344865851
chore: format & check with prettier (#5869) 2021-11-28 14:41:47 +01:00
Jeff Yang
f1b8b5fc96
docs: replace build.brotliSize with build.reportCompressedSize [ci skip] (#5863) 2021-11-27 17:43:34 +01:00
Jeff Yang
8a8b296a12
docs: css.modules.localsConvention is null by default, fix #5650 (#5864) 2021-11-27 17:16:55 +01:00
杨永安
dcaaa0fcfe
docs: add tip Note for build.cssCodeSplit (#5739)
Co-authored-by: Shinigami <chrissi92@hotmail.de>
2021-11-18 17:05:13 +01:00
Bjorn Lu
96664469e4
fix(ssr): skip dedupe require in esm (#5714) 2021-11-17 07:27:52 +01:00
yuuang
a44f4809eb
docs: add build.ssr in config/index.md (#5609) 2021-11-10 14:47:17 +01:00
patak
a473570777
docs: dev and serve aliases (#5483) 2021-11-08 15:43:42 +01:00
Shinigami
211f183ffd
chore(deps): massive major deps update (#5574) 2021-11-07 11:37:05 +01:00
patak
ff755eb7ec
feat: preview config (#5514) 2021-11-06 21:14:39 +01:00
Ant
1846df81b3
docs(server): host type boolean (#5474) 2021-10-29 15:53:56 +02:00
patak
21367713c7
feat!: server fs strict by default (#5341) 2021-10-27 22:20:13 +02:00
Anthony Fu
1a15460bf3
feat: server.fs.deny support (#5378) 2021-10-27 16:32:15 +02:00
Clement Fradet Normand
ffb57d6bb4
docs: server port default (#5328) 2021-10-18 12:41:01 +02:00
btea
e7eaa43ba7
docs: fix config typo (#5291) 2021-10-14 11:19:56 +02:00
Haoqun Jiang
b17444fd97
feat: add build.cssTarget option (#5132)
fixes #4746
fixes #5070
fixes #4930
2021-10-09 12:09:06 +02:00
Haoqun Jiang
bbb406764d
docs: explain how to watch files inside node_modules (#5239) 2021-10-09 12:07:14 +02:00
François Wouts
63c7a88cad
docs: clarify that server.hmr.server works with HTTP too (#5163) 2021-10-01 10:59:30 +02:00
ygj6
789130bce7
chore: update tips and docs (#5116) 2021-09-28 11:56:38 +02:00
QiChang Li
9db3005b99
docs: fix code block display exception (#5115) 2021-09-28 08:49:48 +02:00
Enzo Innocenzi
e4ef6ddbbf
fix: Allow custom asset URL origin in development (#5104)
Co-authored-by: 2359634711 <2359634711@qq.com>
2021-09-27 13:25:18 +02:00
Anthony Fu
6f2dea249a
docs: docs for searchForWorkspaceRoot #4958 (#5062) 2021-09-24 06:06:55 +02:00
patak
1bd6d56bfd
fix: docs for ssr manifest plugin and dedupe name (#4974) 2021-09-18 21:28:24 +02:00
Bjorn Lu
05fae60958
docs: clarify assetsInclude (#4955) 2021-09-17 16:23:14 +08:00
ygj6
b61b044d8f
feat: add resolve.preserveSymlinks option (#4708) 2021-09-13 23:42:51 +02:00
Flyme
780ddcff2c
docs: unify project name (#4876)
Co-authored-by: de_yi <de>
2021-09-08 17:39:54 +08:00
Bjorn Lu
f61ec46a07
feat(optimizer): nested optimization (#4634) 2021-08-31 11:57:54 +02:00
Yunfei He
dfdb9cc411
feat: allow custom vite env prefix (#4676) 2021-08-27 16:26:04 +02:00
OneNail
cb90de0081
docs: update build options config (#4735) 2021-08-25 20:55:46 +02:00
Josh Larson
963387adbb
feat: Add ssr.noExternal = true option (#4490) 2021-08-17 04:37:56 +08:00
Yadhunandan S
b010678f9d
docs: Removed an unwanted closing parenthesis (#4599) 2021-08-14 09:33:11 +08:00
rxliuli
2faef0b3b9
docs: Fix the confusing example of server.proxy (#4485) 2021-08-03 08:50:53 +02:00
Haoqun Jiang
d53dc92fb8
docs: add a note on how to fix WSL2 watch issues (#4478) 2021-08-02 17:24:10 +02:00
taisei mima
67e5830ce5
chore: typo (#4445) 2021-07-30 16:17:28 +08:00
patak
cb75dbd4a2
feat: modulepreload polyfill (#4058) 2021-07-29 07:17:13 +02:00
OneNail
832d7f39dc
docs: fix globalModulePaths type (#4420) 2021-07-28 18:11:35 +02:00
patak
318cb43380
refactor: deprecate polyfillDynamicImport (#4373) 2021-07-27 23:11:45 +02:00
Shinigami
cd44691b39
docs: exhibit defineConfig (#4343) 2021-07-27 23:00:51 +08:00
Ian VanSchooten
2b5d587441
docs: clarify sourcemap options (#4372) 2021-07-23 21:10:12 +02:00
Etienne
772b2f73b0
feat: enable usage of function as library fileName, close #3585 (#3625) 2021-07-14 16:11:28 +02:00
Shinigami
98d95e3e11
chore: improve prettier config (#4154) 2021-07-06 20:23:46 +02:00
patak
d697ef35aa
docs: how to disable publicDir (#4074) 2021-07-02 19:42:25 +08:00
patak
d1a0e7886d
docs: typos in config page (#4073) 2021-07-02 17:03:30 +08:00
LocTran016
da2a41de65
docs: add note about opening in a specific browser (#3976)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-06-29 23:30:28 +08:00
Richard Petersen
5507b4c912
feat: allow passing options to rollupjs dynamic import vars plugin (#3047) 2021-06-29 09:25:04 +08:00
Alec Larson
8fa75b5f9f
docs: clarify CommonJS with optimizeDeps.exclude (#3961)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-06-27 04:56:02 +08:00
Anthony Fu
5551dff351
refactor!: rename server.fsServe to server.fs (#3965) 2021-06-26 13:19:52 +08:00
ferdinando-ferreira
330c94c435
feat: support for regex for ssr.noExternal (#3819) 2021-06-26 02:26:27 +08:00
Anthony Fu
c45a02f027
feat: fs-serve import graph awareness (#3784)
Co-authored-by: Shinigami <chrissi92@hotmail.de>
2021-06-26 02:06:08 +08:00
Jun Shindo
59b9cc93d4
docs: add a comma to the code (#3941) 2021-06-24 23:18:54 +08:00
Luuk de Vlieger
88748b3ffc
docs: proxy 'configure' option (#3936) 2021-06-24 19:52:46 +08:00
Evan You
bd8723eb36 fix: only downgrade target to es2019 when actually using terser 2021-06-22 12:45:24 -04:00
Aayush Kapoor
19e479ba0d
feat: allow 'hidden' sourcemap to remove //# sourceMappingURL from generated maps (#3684)
* fix(types): add hidden to sourcemap

* docs: update sourcemap config
2021-06-11 22:08:53 +08:00
⚡ Aditya Patel ⚡
4d2e68b963
docs: fix build.assetsInlineLimit note for lib mode, fix #3643 (#3672) 2021-06-04 17:02:05 +02:00
Joe Busillo
a30724c8a4
docs(hmr): document hmr.server option (fix #3587) (#3590)
* docs(hmr): document hmr.server option

* docs(hmr): hmr.server apply suggestions
2021-05-30 11:47:03 +08:00
John Simons
7db69a3c28
feat: added clientPort to HmrOptions (#3578) 2021-05-29 10:58:49 +08:00
GavinRay97
472ba5d719
feat(config): add envDir option (#3407)
Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>
2021-05-28 13:42:22 -04:00
Berton Zhu
b1598cec7e
feat: support serving index.html in middleware mode (#2871)
* feat: support for serving `index.html` in middleware mode

* docs: document `server.middlewareMode`
2021-05-24 01:05:40 +08:00
patak
4112c5d103
fix: restore dynamic-import-polyfill (#3434) 2021-05-17 15:55:31 +08:00
Shinigami
d36e10ed99
chore: change prettier version to exact (#3386) 2021-05-12 19:13:44 +02:00
Anthony Fu
5433a65553
fix: disable fsServe restrictions by default (#3377) 2021-05-12 16:39:41 +08:00
Jeff Yang
c1e4b4e01d
chore(docs): indent in build.assetsInlineLimit note (#3361) 2021-05-11 21:43:26 +02:00
Alex Kozack
fe9da97c96
docs: add note about assetsInlineLimit in library mode (#2193) 2021-05-09 23:36:23 +08:00
Anthony Fu
792a6e1ee8
fix: prevent serving unrestricted files (fix #2820) (#2850)
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: patak <matias.capeletto@gmail.com>
2021-05-07 18:36:03 +08:00
patak
1c59ef14de
feat: webworker ssr target (#3151) 2021-05-07 14:18:11 +08:00
Jun Shindo
da57434455
docs: remove unnecessary line break (#3287) 2021-05-06 17:03:36 +02:00
Ludovico Fischer
05fd1e26be
refactor!: esbuild 0.11 upgrade, remove dynamic-import-polyfill (#2976) 2021-05-05 16:05:51 +02:00
Eirik Sletteberg
1e604d5b60
fix(server): Listen only to 127.0.0.1 by default (#2977)
Co-authored-by: Nihal Gonsalves <nihal@nihalgonsalves.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-05-05 11:30:43 +08:00
meteorlxy
57980d27ee
feat: support cacheDir (#2899) 2021-04-18 06:57:31 +08:00
清尘
f17e19a80c
feat: parameter settings when packaging the library (#2750)
Co-authored-by: Evan You <yyx990803@gmail.com>
Co-authored-by: patak <matias.capeletto@gmail.com>
2021-04-10 10:05:39 +08:00
Sacha STAFYNIAK
0dc6e37298
feat(cli): build watch mode, fix #1434 (#1449) 2021-04-05 18:43:47 +02:00
Brice BERNARD
2e018ffbb9
chore: add missing comma for docs (#2856) 2021-04-05 00:08:41 +08:00
Haoqun Jiang
b4a1526696
docs: note that define should be used for CONSTANTS not variables (#2837) 2021-04-03 17:38:45 +02:00
ZHAO Jinxiang
aee8b3770c
feat: add async support for vite config file (#2758) 2021-04-01 03:39:24 +08:00
patak
ef3ca62789
docs: using plugins guide (#2743) 2021-03-30 23:38:57 +02:00
Edward Sanders
130bf5a03a
feat(dev): support keepNames option for optimizeDependencies config (#2742) 2021-03-29 22:24:14 +02:00
ghostdevv
2c416772b5
fix: minor typo (#2765) 2021-03-29 19:12:12 +02:00
Faris Ansari
b65bc61972
chore: fix docs link to Project Root section (#2406)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-03-15 16:21:59 +08:00
Danny Feliz
5ec13d8b3f
chore: remove extra colon (#2438) 2021-03-09 16:16:10 +08:00
Tobias Lundin
6720f65d70
chore: typo (#2423) 2021-03-08 14:53:26 +08:00
Alex Kozack
76f35352db
docs: dix build.sourcemap type (#2414) 2021-03-07 20:57:28 +08:00
Evan You
30deabf4aa docs: document define behavior change 2021-02-13 15:03:39 -05:00
nio89
e85e3a58f7
docs: typo (#2005) [skip ci]
trasnpiling -> transpiling
2021-02-13 14:50:54 -05:00
Evan You
589b29596e fix: ensure intellisense for all create-app templates 2021-02-12 11:05:11 -05:00
Evan You
0318c64cc3 feat(resolve): expose full resolve options via config
- New config options:
  - `resolve.conditions`
  - `resolve.mainFields`
  - `resolve.extensions`
- Deprecation: `alias` is now `resolve.alias`
- Deprecation: `dedupe` is now `resolve.dedupe`

close #1951
2021-02-09 22:27:26 -05:00
Caleb Eby
0f692ce058
docs: fix typo in config docs @type (#1947) 2021-02-08 22:09:57 -05:00
Evan You
cdab0a71e8 docs: ssr docs edits 2021-02-03 16:26:05 -05:00
Evan You
424a95e5a1 docs: ssr guide 2021-02-02 22:53:18 -05:00
Evan You
a139fbaf58 docs: update optimizeDeps options 2021-02-02 22:02:45 -05:00
Evan You
4ca98b405e docs: move static asset handling into its own page 2021-02-02 15:44:43 -05:00
Evan You
aaed7d7f37 docs: build.commonjsOptions no longer apply to pre-bundling 2021-01-29 15:54:37 -05:00
Evan You
470ceb8276 feat: support configuring publicDir via config
close #1799
2021-01-29 14:01:36 -05:00
Evan You
a6ed213b31 docs: update optimizeDeps options 2021-01-27 01:04:35 -05:00
Evan You
98c321b369 feat: support stringifying json
close #1672
2021-01-23 21:57:16 -05:00
Evan You
00bc446656 fix: support empty, relative and external base values
close #1669
2021-01-23 15:48:07 -05:00
Evan You
38524f6c6e refactor: remove optimizeDeps.plugins
BREAKING CHANGE: `optimizeDeps.plugins` has been removed. The dep
optimizer is now using `esbuild`, and all non-js files are automatically
externalized to be processed by Vite's transform pipeline when imported.
2021-01-22 22:04:51 -05:00
bompus
809d4bd3bf
feat: support base option during dev, deprecate build.base (#1556) 2021-01-22 17:45:51 -05:00
Evan You
6bd21402a9 feat: allow inline postcss config
close #1061
2021-01-20 16:44:31 -05:00
Evan You
c5c32982f2 feat: add clearScreen option 2021-01-14 15:09:54 -05:00
plq
25e9c44992
feat: support specifying URL path via server.open option (#1514) 2021-01-14 13:48:44 -05:00
Timo Zander
f39a2aafd3
feat(vite): support RegExp strings as server.proxy keys (#1510) 2021-01-13 11:15:20 -05:00
Alexis Tyler
ac9ec0d726
docs: fix "speical" typo (#1508) 2021-01-12 22:31:13 -05:00
Evan You
730d2f0d80 feat: require explicit option to empty outDir when it is out of root
close #1501
2021-01-12 12:33:47 -05:00
Sacha STAFYNIAK
05010846cb
feat(server): add strict-port option (#1453) 2021-01-11 15:15:54 -05:00
Evan You
6ed8e286f1 feat: allow passing options to rollup commonjs plugin via build.commonjsOptions
close #1460
2021-01-10 18:19:09 -05:00
Evan You
1ea0168239 feat(optimizer): support specifying plugins for the optimizer 2021-01-09 23:40:53 -05:00
Evan You
8b8d5061ea refactor(optimizer): adjust node built-in handling
- prefer resolved if resolvable
- externalize to empty module when not resolved
- better plugin warning handling
2021-01-09 22:53:51 -05:00
zhenzhenChange
91dbb01709
chore: typos (#1463) [skip ci] 2021-01-09 22:00:05 -05:00
Evan You
aa5463c6d4 docs: note on alias value 2021-01-09 00:37:52 -05:00
Evan You
f1db57636b docs: document mode config 2021-01-07 11:02:58 -05:00
Patrick Dobbs
7a9aba57dc
docs: fixed incorrect server.proxy example (#1394) 2021-01-06 21:42:08 +08:00
Sebastian Seilund
39f2002c1a
docs: fix build.polyfillDynamicImport naming (#1387) 2021-01-06 15:34:45 +08:00
Evan You
756e90ff9b feat(build): default build target to 'modules' with dynamic import polyfill 2021-01-05 18:11:21 -05:00
Evan You
99522d0edf refactor: remove the need for specifying trnasformInclude
BREAKING CHANGE: `trnasformInclude` option has been removed and is no
longer necessary. This allows full dynamic imports to custom file types
to automatically qualify for the transform pipeline.

    - All requests that accept `*/*` AND is not declared an asset type
    will now qualify for the transform pipeline.

    - To exclude an asset type from being transformed when requested
    directly, declare it as asset via `config.assetsInclude`.
2021-01-05 12:04:41 -05:00
Evan You
ef100d09cb feat: default clean-css level to 1 + expose options
close #936
2021-01-04 21:20:02 -05:00
Anbraten
355cb5b44a
docs: fix typo at config doc (#1349) 2021-01-04 13:44:02 -05:00
Evan You
b5b14962b5 feat: esbuild.(include|exclude|jsxInject) 2021-01-03 22:34:11 -05:00
Evan You
7858e62927 feat: dedupe option
close #1302
2021-01-02 22:35:33 -05:00
Matias Capeletto
a8a8e2231c
docs: fix typos (#1283) 2021-01-02 17:53:38 +08:00
Evan You
3a27fa376e docs: migration guide 2021-01-01 22:39:39 -05:00
Evan You
26452d9d06 docs: docs 2021-01-01 16:46:52 -05:00