From dc3534e160645d63c0db2dd1d53c966b7c8a6d0b Mon Sep 17 00:00:00 2001 From: Richard Stromer Date: Wed, 13 Dec 2023 13:37:40 +0100 Subject: [PATCH] Update readme to set manifest path close #112 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e13d55b..3f866a5 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -70,7 +70,7 @@ export default defineConfig({ base: "/static/", build: { ... - manifest: true, + manifest: "manifest.json", outDir: resolve("./assets"), rollupOptions: { input: {