I would like vite manifest to be available in the public_html/build/ directory for my website but I keep getting the error Vite manifest not found at: public_html/public/build/manifest.json. This is my config how would I modify that to make it at the build/ instead of public/build?
//vite.config.js
export default defineConfig({
resolve: {
alias: {
'vue': 'vue/dist/vue.esm-bundler.js'
},
},
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
VueI18nPlugin({
include: resolve(dirname(fileURLToPath(import.meta.url)), 'resources/js/locales/**'),
}),
],
build: {
outDir: 'build',
publicDir: 'build',
manifest: true,
}
});
I could not make my manfiest avaliable in public_html/build but I can leave all my compiled files there and move it to public/build and it works.