I try to exclude node_modules/electron from the asar using this command, which I think, should do exactly this:
npx asar pack . app.asar --unpack-dir "node_modules/electron"
Now, when we look into the asar.app.unpacked folder, we find the files for node_modules/electron and also all files for all libraries like node_modules/electron* - for example, node_modules/electron-redux.
Then, when we do npx list app.asar, we see that node_modules/electron is still packaged (and the others also).
I expect, from the documentation, that it would just exclude that folder and not all, that simply start with the pattern, as that's what it says on the readme. And then, it actually does not exclude.
I try to exclude
node_modules/electronfrom the asar using this command, which I think, should do exactly this:Now, when we look into the
asar.app.unpackedfolder, we find the files fornode_modules/electronand also all files for all libraries likenode_modules/electron*- for example,node_modules/electron-redux.Then, when we do
npx list app.asar, we see thatnode_modules/electronis still packaged (and the others also).I expect, from the documentation, that it would just exclude that folder and not all, that simply start with the pattern, as that's what it says on the readme. And then, it actually does not exclude.