During build, the following notice is shown:
electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from
devDependencies
I have a rebuild script in my package.json as I use keytar:
"rebuild": "electron-rebuild -f -w keytar"If I remove electron-rebuild, what command do I use to rebuild using electron-builder?
electron-builder does rebuild for you automatically. No need to use anything else.
What if you are using webpack-dev-server, which will fail to load if a package (i.e. keytar) is not rebuild for the platform on which I am developing.
For example, If I build for the Windows platform. Then I go back to regular develop mode (i.e on Mac) and run webpack-dev-server which fails because the keytar package needs to be rebuilt.
The solution mentioned would require me to perform a complete build for my development environment just to have keytar rebuilt.
@develar
I have the same question, except SQLite instead of keytar.
What is the equivalent of this:
electron-rebuild -f -w sqlite3
...in electron-builder?
Same question. Any answer?
I have not found the answer.
I have a start script that runs webpack-dev-server. Adding "prestart": "electron-builder install-app-deps" solved the problem for me.
@Laruxo thanks for the suggest. I will give this a try.
Most helpful comment
@develar
I have the same question, except SQLite instead of keytar.
What is the equivalent of this:
electron-rebuild -f -w sqlite3...in electron-builder?