Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added webpack support for Node #630

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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