Skip to main content
Participant
March 19, 2019
Question

Packaging an HTML extension

  • March 19, 2019
  • 2 replies
  • 782 views

Hi there,

  • Starting to move from development to packaging...
  • My extension leverages node packages, and as expected, under the extension directory I have node_modules sub directory
  • When I am running ZXPSignCmd.exe should I leave the node_modules there? Should it sign also those files (which I do not "own")?

The reason I am asking is, that if I do leave it there, the extension loads and runs very slowly when deployed from the ZXP on a non debug machine. It takes forever for every screen to load. Also, if I just do ZXPSignCmd.exe -verify it takes forever (on the original machine), so I assume that the verification is the issue here.

If I leave it out, the extension tries to load very fast, but, fails as it is missing the modules.

If I copy the modules manually, the log shows that it fails to validate the extension...

So I am kind of stuck, I suspect I am doing something wrong here.

Thanks for your help!

This topic has been closed for replies.

2 replies

Community Expert
March 20, 2019

You will have to sign the whole bundle along with the node modules. Unless you do that the verification process would fail and the plugin will not load. In my opinion signing the node modules should not be an issue, as they are free source packages with no restriction on use. Regarding the time taken you will have to reduce the size of the whole bundle as much as you can, i have not been able to find anyway around it.

-Manan

-Manan
Jarda Bereza
Inspiring
March 19, 2019

What is total number of files in your extension?

Participant
March 20, 2019

Hi Jerda,

I am adding 12 npm packages, which end up adding their dependencies... so total sub directories under node_modules are 78, total number of files: 2,355.

It seems that every time I open the extension, post installation, there is some verification done.

Thanks!

Guy