Skip to content

Conversation

Joelith
Copy link

@Joelith Joelith commented Aug 24, 2021

Added the ability to use a compiled dist folder script rather than the full code. Reduces overall file size and allows you to have test code that isn't compiled and sent to the server.

Resolves Issue #629

Added the ability to use a compiled dist folder script rather than the full code. Reduces overall file size and allows you to have test code that isn't compiled and sent to the server
@Joelith
Copy link
Author

Joelith commented Aug 24, 2021

I should add this code assumes you are compiling to dist/main.js (which is the default). You will need to install webpack (npm install webpack webpack-cli --dev) and then add a webpack.config.js like so:

module.exports = {
  entry: './func.js',
  target: 'node'
};

@Joelith
Copy link
Author

Joelith commented Oct 12, 2021

Can this be reviewed please. Would love to be able to reduce memory size in our production images on OCI

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