How is the correct syntax to ignore more then one files and folders for electron-packager?
With only one arg like: --ignore=docs/* it works fine. But I want to ignore more then one folder and files like: --ignore=docs/* + dev/* + someFile.js
This variant works for me
--ignore=\"(docs*|dev*|somefile\.js)\"
Use the OR statement in the regular expression by using the | character in stead of the + character.
--ignore="docs/.*|dev/.*|somefile\.js"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With