mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-29 13:11:49 +00:00
Emit runtime asset manifest as ESM module
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@ import {
|
||||
copyRootPublicFiles,
|
||||
createHashedPublicAssetFiles,
|
||||
getResourcesDir,
|
||||
writePublicAssetManifestFile,
|
||||
writePublicAssetManifestModule,
|
||||
} from "./src/server/PublicAssetManifest";
|
||||
|
||||
// Vite already handles these, but its good practice to define them explicitly
|
||||
@@ -44,7 +44,7 @@ export default defineConfig(({ mode }) => {
|
||||
closeBundle() {
|
||||
const outDir = path.join(__dirname, "static");
|
||||
copyRootPublicFiles(resourcesDir, outDir);
|
||||
writePublicAssetManifestFile(outDir, assetManifest);
|
||||
writePublicAssetManifestModule(outDir, assetManifest);
|
||||
createHashedPublicAssetFiles(resourcesDir, outDir, assetManifest);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user