From ad97ccc022805ed779b6e09fe4e388bc64c8678a Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Wed, 22 Jun 2022 10:25:13 +0200 Subject: [PATCH 1/5] Update UPGRADE.md --- UPGRADE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 6311d89..bf8c122 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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 ``` From 5b37cb59bb72860e3980f022873f21da87794574 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Wed, 22 Jun 2022 10:49:53 +0200 Subject: [PATCH 2/5] Update UPGRADE.md --- UPGRADE.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index bf8c122..9cc5377 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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: + +```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 @@ -263,6 +269,14 @@ 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 +``` + ## Migrating from Vite to Laravel Mix ### Install Laravel Mix From 93e0db930377de5ed436644985250a57a14012b1 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Wed, 22 Jun 2022 10:51:05 +0200 Subject: [PATCH 3/5] Update UPGRADE.md --- UPGRADE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index 9cc5377..b3ffa34 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -277,6 +277,8 @@ You should now be able to build your assets using the following command. This wi npm run dev ``` +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 From 9ca21ffa9fd342fa52737b858e54ca4bbbc96bd0 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Wed, 22 Jun 2022 14:37:34 +0200 Subject: [PATCH 4/5] Update UPGRADE.md --- UPGRADE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index b3ffa34..71c00da 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -277,6 +277,12 @@ You should now be able to build your assets using the following command. This wi 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 From de1c5bdf2e2eb66299824547ea2570e7527061a7 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Thu, 23 Jun 2022 09:51:39 +0200 Subject: [PATCH 5/5] Update UPGRADE.md --- UPGRADE.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 71c00da..a0ce4d0 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -184,12 +184,6 @@ 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: - -```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