digitalmaas / serverless-plugin-browserifier

Reduce the size and speed up your Node.js based lambda's using browserify.
Other
27 stars 4 forks source link

Pass options to browserify plugin #7

Closed heri16 closed 6 years ago

heri16 commented 6 years ago

How do we pass options to a browserify plugin?

I have tried both:

custom:
  browserify:
    plugin:
      - prepackify:
          compatibility: node-cli
custom:
  browserify:
    plugin:
      - prepackify --compatibility=node-cli
nolde commented 6 years ago

Could you try this...

custom:
  browserify:
    plugin:     
      - - prepackify
        - compatibility: node-cli

... and let me know if it works?

Normally, we have to follow browserify([files] [, opts]) API format, and options like plugin or transform are usually arrays that contains either strings with the tool name or arrays with tool name and options.

nolde commented 6 years ago

A long time has passed, with no reply.

I will close this issue.