Skip to content

Commit

Permalink
fix: infer correct dirname when a custom manifest is provided (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephnle committed May 10, 2024
1 parent c726a16 commit cc46e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite-plugin-ruby/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function assetsManifestPlugin (): Plugin {
async generateBundle (_options, bundle) {
if (!config.build.manifest) return

const manifestDir = typeof config.build.manifest === 'string' ? path.basename(config.build.manifest) : '.vite'
const manifestDir = typeof config.build.manifest === 'string' ? path.dirname(config.build.manifest) : '.vite'
const fileName = `${manifestDir}/manifest-assets.json`

const manifest: AssetsManifest = new Map()
Expand Down

0 comments on commit cc46e3a

Please sign in to comment.