Skip to content

Commit

Permalink
Merge pull request #113 from noxan/improve-readme-manifest
Browse files Browse the repository at this point in the history
Update readme to set manifest path
  • Loading branch information
MrBin99 authored Jan 10, 2024
2 parents b1cb42a + 054796a commit fc86d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Then in your ViteJS config file :

- Set the `base` options the same as your `STATIC_URL` Django setting.
- Set the `build.outDir` path to where you want the assets to compiled.
- Set the `build.manifest` options to `true`.
- Set the `build.manifest` options to `manifest.json`.
- As you are in SSR and not in SPA, you don't have an `index.html` that
ViteJS can use to determine which files to compile. You need to tell it
directly in `build.rollupOptions.input`.
Expand All @@ -70,7 +70,7 @@ export default defineConfig({
base: "/static/",
build: {
...
manifest: true,
manifest: "manifest.json",
outDir: resolve("./assets"),
rollupOptions: {
input: {
Expand Down

0 comments on commit fc86d0f

Please sign in to comment.