Skip to content

Conversation

@piotr-cz
Copy link
Contributor

This adds a feature to set npm install options in config (see npm docs).

It may be used for example to minimize layer size or use different dependencies for development and production.

Example:

custom:
  layerConfig:
    installLayers: true
    installOptions:
    - --no-bin-links
    - --only=production

It's already possible set it up via the .npmrc file after #4, however this solution is more explicit and makes possible to set common options for all layers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant