New search function et drag and drop clean
This commit is contained in:
31
notes/projets/frontend/vite-build.md
Normal file
31
notes/projets/frontend/vite-build.md
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
title: "Vite Build Process"
|
||||
date: "10-11-2025"
|
||||
last_modified: "10-11-2025:19:21"
|
||||
tags: ["projet", "frontend", "build"]
|
||||
---
|
||||
|
||||
# Vite Build Process
|
||||
|
||||
## Structure
|
||||
|
||||
```
|
||||
frontend/
|
||||
├── src/
|
||||
│ ├── main.js
|
||||
│ ├── editor.js
|
||||
│ ├── file-tree.js
|
||||
│ └── ui.js
|
||||
├── vite.config.js
|
||||
└── package.json
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
`npm run build` génère:
|
||||
- `project-notes-frontend.es.js` (ES modules)
|
||||
- `project-notes-frontend.umd.js` (UMD)
|
||||
|
||||
## Watch Mode
|
||||
|
||||
`npm run build -- --watch` pour le dev.
|
||||
Reference in New Issue
Block a user