Vite
| Vite | |
|---|---|
| | |
| Тып | Сервер распрацоўкі |
| Аўтар | Эван Ю |
| Распрацоўшчык | Эван Ю[d][1] |
| Напісана на | TypeScript |
| Аперацыйная сістэма | кросплатформавасць[d] |
| Мовы інтэрфейсу |
|
| Першы выпуск | 20 красавіка 2020 |
| Апаратная платформа | Node.js, Deno |
| Апошняя версія | 4.4.1 (6 ліпеня 2023) |
| Рэпазіторый | github.com |
| Ліцэнзія | MIT License |
| Сайт | vitejs.dev |
Vite (фр.: vit, гучыць як «віт») — сервер лакальнай распрацоўкі, створаны заснавальнікам Vue.js Эванам Ю. Па змоўчанні выкарыстоўваецца ў Vue і для шаблонаў React праектаў. Падтрымлівае TypeScript і JSX[2].
Ён адсочвае файлы падчас іх рэдагавання, і пры захаванні файла вэб-браўзэр перазагружае рэдагуемы код з дапамогай працэсу, званага «Hot Module Replacement» (HMR). HMR працуе шляхам простай перазагрузкі пэўнага змененага файла з выкарыстаннем модуляў ES6 (ESM) замест перакампілявання ўсёй праграмы.
Vite забяспечвае ўбудаваную падтрымку рэндэрынгу на баку сервера (SSR). Па змаўчанні ён працуе з партом TCP 5173. Можна наладзіць Vite на абслугоўванне змесціва па пратаколе HTTPS і перадачу запытаў (у тым ліку WebSocket) на ўнутраны вэб-сервер (напрыклад Apache HTTP Server, ці lighttpd)[3].
Гл. таксама
Зноскі
- ↑ https://github.com/vitejs/vite/commit/820c2cfbefd376b7be2d0ba5ad1fd39d3e45347e
- ↑ What is Vite and why do you need it?. www.gpmd.co.uk. Праверана 7 верасня 2023.
- ↑ What’s Vite: The Guide to Modern, Super-Fast Project Tooling (англ.). Telerik Blogs (13 студзеня 2022). Праверана 7 верасня 2023.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.