Skip to content

Commit 9671bd7

Browse files
committed
Update UPGRADE.md
1 parent 74bbf11 commit 9671bd7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

UPGRADE.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ See [this tweet](https://twitter.com/youyuxi/status/1362050255009816577) from Vi
163163

164164
> **Note:** If you are using Tailwind, remember to update the paths in your `tailwind.config.js` file.
165165
166+
### Vue imports must include the `.vue` extension
167+
168+
```diff
169+
- import Button from './Button'
170+
+ import Button from './Button.vue'
171+
```
172+
166173
### Remove Laravel Mix
167174

168175
The Laravel Mix package can now be uninstalled:
@@ -240,9 +247,7 @@ You may wish to add the following additional scripts to your `package.json`:
240247
"scripts": {
241248
"dev": "vite",
242249
- "build": "vite build"
243-
+ "build": "vite build",
244-
+ "ssr:build": "vite build --ssr",
245-
+ "ssr:serve": "node storage/ssr/ssr.js"
250+
+ "build": "vite build && vite build --ssr"
246251
}
247252
```
248253

@@ -252,6 +257,12 @@ If you prefer to build your assets on deploy, instead of committing them to your
252257
/storage/ssr
253258
```
254259

260+
You may start the SSR server using `node`:
261+
262+
```sh
263+
node storage/ssr/ssr.js
264+
```
265+
255266
## Migrating from Vite to Laravel Mix
256267

257268
### Install Laravel Mix
@@ -294,8 +305,6 @@ Update your NPM scripts in `package.json`:
294305
"scripts": {
295306
- "dev": "vite",
296307
- "build": "vite build"
297-
- "ssr:build": "vite build --ssr",
298-
- "ssr:serve": "node storage/ssr/ssr.js"
299308
+ "dev": "npm run development",
300309
+ "development": "mix",
301310
+ "watch": "mix watch",

0 commit comments

Comments
 (0)