Skip to content

Commit 0543b93

Browse files
committed
doc: upgrade guide from Nova 4
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent d5cbb93 commit 0543b93

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,21 @@ To reverse the above action, you need to run the following command:
6464
```shell
6565
php vendor/bin/testbench nova:devtool disable-vue-devtool
6666
```
67+
68+
## Ugrading from Nova 4
69+
70+
Nova Devtool ships with a generic `nova.mix.js` instead of publishing the file on each 3rd-party components. For external 3rd-party component you just need to include change the following code in `webpack.mix.js`:
71+
72+
```diff
73+
let mix = require('laravel-mix')
74+
75+
-require('./nova.mix') // [!code --]
76+
+mix.extend('nova', new require('laravel-nova-devtool')) // [!code ++]
77+
78+
mix
79+
.setPublicPath('dist')
80+
81+
// ...
82+
```
83+
84+
Finally, you can remove the existing `nova.mix.js` from the component root directory.

0 commit comments

Comments
 (0)