-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
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
Vite reads electron base path in a project using vue-cli-plugin-electron-builder. #31
Comments
I dont know what you said. |
if you use some vue-cli-plugin, you should find or write the same plugin in vite-plugin and pass in. https://github.com/nklayman/vue-cli-plugin-electron-builder/blob/master/index.js |
I'm sorry, I was asleep and wrote.
So, is it possible to have vite do only the vue-cli-service serve and vue-cli-service build parts instead of rewriting everything to vite? |
yes this plugin only do dev(serve). but it seems serve stage read dist as well. I do think it is possible to write vite-plugin do the same thing with vue-cli. e.g. https://github.com/cawa-93/vite-electron-builder but it is not easy. |
for example: we have some project use vue-cli-plugin-auto-routing and vue-cli-plugin-mock and so on. we should use this plugin and write vite-plugin-auto-routing and vite-plugin-mock to do the same thing and pass in the vue.config.js#pluginOptions.vite.plugins. |
Vite is will read the basePath to be used in the vue-cli-plugin-electron-builder.
The text was updated successfully, but these errors were encountered: