Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UPGRADE.md #26

Merged
merged 5 commits into from
Jun 23, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -184,6 +184,12 @@ And you may remove your Mix configuration file:
rm webpack.mix.js
```

To wrap up, you may remove your Mix build manifest as well as the rule from the `.gitignore` config file:
driesvints marked this conversation as resolved.
Show resolved Hide resolved

```shell
rm public/mix-manifest.json
```

If you are using StyleCI and have ignored the `webpack.mix.js` file in your configuration, you may also like to remove the ignore rule.

### Optional: Configure Tailwind
Expand Down Expand Up @@ -263,6 +269,16 @@ 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
```
jessarcher marked this conversation as resolved.
Show resolved Hide resolved

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