Skip to content

Commit 3da60b8

Browse files
committed
docs: add setup for initial manifest build
1 parent 3f29cfa commit 3da60b8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)