File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,22 @@ Change the scripts section in `package.json` to use vite instead of laravel mix:
9595}
9696` ` `
9797
98+ # ## 5. Add manifest setup
99+
100+ In `script/setup.cr`, find the "Compiling assets" step and change the command :
101+
102+ ` ` ` diff
103+ # ...
104+ notice "Compiling assets"
105+ - run_command "yarn", "dev"
106+ + run_command "yarn", "run", "vite", "build"
107+ # ...
108+ ` ` `
109+
110+
98111# ## Further steps
99112
100113- if you use the CI workflow for Github Actions, you need to change `yarn prod` into `yarn build` in `ci.yml`
101- - if you use `script/setup`, uncomment `yarn dev | indent` under `Compiling assets`
102114- you may want to exclude Vite's `outDir` (e.g. `public/assets`) from the repo
103115- all the `laravel-mix` dependencies can be removed from from `package.json`
104116- ` webpack.mix.js` can be removed
You can’t perform that action at this time.
0 commit comments