Skip to content

Commit

Permalink
Merge pull request #26 from laravel/driesvints-patch-1
Browse files Browse the repository at this point in the history
Update UPGRADE.md
  • Loading branch information
jessarcher authored Jun 23, 2022
2 parents 3ffa979 + de1c5bd commit e82dfd1
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ npm install --save-dev vite laravel-vite-plugin
You may also need to install additional Vite plugins for your project, such as the Vue or React plugins:

```shell
# Vue
npm install --save-dev @vitejs/plugin-vue
```

# React
```shell
npm install --save-dev @vitejs/plugin-react
```

Expand Down Expand Up @@ -261,6 +261,22 @@ You may start the SSR server using `node`:
node storage/ssr/ssr.js
```

### Wrapping Up

You should now be able to build your assets using the following command. This will also invoke the Vite server and Vite will watch for file changes:

```shell
npm run dev
```

Alternatively, if you need to build files without watching or if you need to build them for production, you may use the following command:

```shell
npm run build
```

For further info on how to use Vite, please check out [the documentation](https://laravel.com/docs/vite).

## Migrating from Vite to Laravel Mix

### Install Laravel Mix
Expand Down

0 comments on commit e82dfd1

Please sign in to comment.