We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildEnd
Here is my case:
I writing a plugin that will generate a file when bundler completed. My expect is:
dist/ - chunks.js - index.html - myfile.txt <- 👈 here
In webpack output is what am I expected, but in vite is NOT.
I do a little hooks comparison of rollup and webpack, I found the writeBundle, generateBundle is similar to webpack's compiler.hooks.done.
writeBundle
generateBundle
compiler.hooks.done
So my current solution is use writeBundle for vite.
vite: { async writeBundle(options) { const p = options.dir if (!p) return await writeVersionFile(p) } }
The text was updated successfully, but these errors were encountered:
Could you provide a duplicate?
Sorry, something went wrong.
I am not sure for now, because it is almost a year and a half ago issue. thanks for the ask.
No branches or pull requests
Here is my case:
I writing a plugin that will generate a file when bundler completed. My expect is:
In webpack output is what am I expected, but in vite is NOT.
I do a little hooks comparison of rollup and webpack, I found the
writeBundle
,generateBundle
is similar to webpack'scompiler.hooks.done
.So my current solution is use
writeBundle
for vite.The text was updated successfully, but these errors were encountered: