Closed RavenCri closed 4 years ago
You did not call crx.loadContents()
, and i cannot see you setting up rootDirectory
option anywhere.
Please check source of cli.js
to see how ChromeExtension
class can be used.
I solved the problem through your reply, sincere thanks
When I use node to run 'CRX = > CRX. Pack(); fs. WriteFile ("xpd",crxBuffer)', the content of the CRX file is not complete, but it is complete when I use the CMD command 'CRX pack - O xxx'. . I want to know how to solve it. I look forward to your reply.Thanks.