Skip to content

Commit d6b1fd6

Browse files
committed
upgrade vite notes
1 parent 4787880 commit d6b1fd6

9 files changed

Lines changed: 13 additions & 9 deletions

File tree

137 Bytes
Binary file not shown.

03-bundling/06-vite/01-basic/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Let's start with a very basic sample, just add an html plus a simple console log
66

77
## Prerequisites
88

9-
Install [Node.js and npm](https://nodejs.org/en/) (18 / 20+) if they are not already installed on your computer.
9+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1010

1111
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may not work.
1212

@@ -15,10 +15,14 @@ Install [Node.js and npm](https://nodejs.org/en/) (18 / 20+) if they are not alr
1515
Vite provides a powerful templating feature to quickly scaffold your project instead of starting from scratch. It publishes templates than can be used with npm command `npm create` to ramp up your project immediately. For example, for a `react` project with `typescript` we could type:
1616

1717
```bash
18-
npm create vite@latest my-app -- --template react-ts
18+
npm create vite@latest my-app
1919
```
2020

2121
> This will instantiate `create-vite` package under the hood.
22+
> Just follow the questions provided by the CLI and select:
23+
>
24+
> - `React` as framework and
25+
> - `Typescript` as variant.
2226

2327
In a real world, we could start as easy as that. However, if we do it now our class will end way too soon 😅. But also, and more important, 'automagic' creations are nice once you are familiar with Vite. Otherwise, whenever you need to tweak settings, you'll be lost.
2428

03-bundling/06-vite/02-custom-css/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Let's work with styles. In this demo, we create a custom CSS file which contains
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (18 / 20+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

03-bundling/06-vite/03-sass/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ So far so good. Now it's time to use a more powerful CSS preprocessor like [SASS
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (18 / 20+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

03-bundling/06-vite/04-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this demo, we will install and configure vite to import the well known [Boots
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (14.18+ / 16+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

03-bundling/06-vite/05-images/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It's time to handle static assets like images or fonts, as we rely on them for m
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (14.18+ / 16+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

03-bundling/06-vite/06-typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It's time to test how `vite` behaves when using Typescript. This is an interesti
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (14.18+ / 16+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

03-bundling/06-vite/07-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Here it comes our first real dependency for `vite`, obviously, we have picked up
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (14.18+ / 16+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

03-bundling/06-vite/08-env-vars/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this example, we are going to support the use of environment variables for ou
88

99
## Prerequisites
1010

11-
Install [Node.js and npm](https://nodejs.org/en/) (14.18+ / 16+) if they are not already installed on your computer.
11+
Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they are not already installed on your computer.
1212

1313
> ⚠ Verify that you are running at least latest Node LTS version and npm. You can check your current version by running `node -v` and `npm -v` in a terminal/console window. Older versions may produce errors.
1414

0 commit comments

Comments
 (0)