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

Question: Reusing webpack zip files #564

Closed
tusamcalles opened this issue Apr 1, 2020 · 2 comments
Closed

Question: Reusing webpack zip files #564

tusamcalles opened this issue Apr 1, 2020 · 2 comments

Comments

@tusamcalles
Copy link
Contributor

This is a Question

Description

Is there a way to reuse the .webpack folder? I would like to build the .webpack and re-use, such that the sls package process does not rebuild the individual function zip files.

Additional Data

  • Serverless-Webpack Version you're using:
    serverless-webpack: 5.3.0
  • Webpack version you're using:
    webpack: 4.32.2
    webpack-node-externals: 1.7.2
  • Serverless Framework Version you're using:
    serverless: 1.60.5
  • Operating System:
    darwin
  • Stack Trace (if available):
    N/A
@jamesmbourne
Copy link
Contributor

@tusamcalles this sounds like #398 - there is a PR open #560 which should implement support for using the --no-build flag when you run serverless-deploy which will re-use the existing output generated by serverless webpack.

Feel free to try it out and let me know how it works for you.

I am currently using this feature across a number of services in production.

@tusamcalles
Copy link
Contributor Author

This is exactly what I was looking for. It works great!

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

No branches or pull requests

3 participants