Fix #69 . Assets in public folder are copied to ${build.outDir} by vite and not inlined by this plugin.
We CAN work with them, however, using relative path and place all resources in the same folder.
Changes of recommended build config:
Set config.base to './' to enable relative path.
Set config.build.assetsDir to '' to make generated files in ${build.outDir}'s root, instead of default ${build.outDir}/assets. Then the embedded resources can be loaded by relative path.
Fix #69 . Assets in public folder are copied to ${build.outDir} by vite and not inlined by this plugin.
We CAN work with them, however, using relative path and place all resources in the same folder.
Changes of recommended build config:
config.base
to'./'
to enable relative path.config.build.assetsDir
to''
to make generated files in ${build.outDir}'s root, instead of default ${build.outDir}/assets. Then the embedded resources can be loaded by relative path.I also updated README to inform this in
Caveats
.