Tartalomjegyzék

< Node.js

Vite

A Vite

Frontend kezelő.

Projekt készítése

npm create vite@latest
$ npm create vite@latest
? Project name: › vite-project
$ npm create vite@latest
✔ Project name: … app01
? Select a framework: › - Use arrow-keys. Return to submit.
❯   Vanilla
    Vue
    React
    Preact
    Lit
    Svelte
    Solid
    Qwik
    Others
$ npm create vite@latest
✔ Project name: … app01
✔ Select a framework: › Vanilla
? Select a variant: › - Use arrow-keys. Return to submit.
    TypeScript
❯   JavaScript
$ npm create vite@latest
✔ Project name: … app01
✔ Select a framework: › Vanilla
✔ Select a variant: › JavaScript

Scaffolding project in /home/janos/dev/app01...

Done. Now run:

  cd app01
  npm install
  npm run dev

Struktúra

app01/
  |-public/
  |  `-vite.svg
  |-.gitignore
  |-counter.js
  |-index.html
  |-javascript.svg
  |-main.js
  |-package-lock.json
  |-package.json
  `-style.css

Fejlesztői szerver

npm run dev

Build

npm run build