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

Allow to keep the .webpack folder after bundling #467

Closed
alfaproject opened this issue Nov 26, 2018 · 2 comments · Fixed by #469
Closed

Allow to keep the .webpack folder after bundling #467

alfaproject opened this issue Nov 26, 2018 · 2 comments · Fixed by #469
Milestone

Comments

@alfaproject
Copy link

alfaproject commented Nov 26, 2018

This is a Feature Proposal

Description

I want to run a method in my handler after bundling is done, but before deploying. Currently, I can do it if I run serverless webpack, but I can't when doing serverless deploy because the .webpack folder gets deleted. ):

My package.json scripts to show what I mean:

{
  "scripts": {
    "extract-schema": "node -e \"require('./.webpack/service/dist/handler').saveSchema();\"",
    "deploy": "serverless deploy",
    "webpack": "serverless webpack && yarn extract-schema"
  }
}

Is there any way to keep the temporary folder?

P.S.: I've also tried to use packagerOptions.scripts, but it doesn't seem to work or maybe I'm doing something wrong.

Additional Data

  • Serverless-Webpack Version you're using: 5.2.0
  • Webpack version you're using: 4.26.1
  • Serverless Framework Version you're using: 1.32.0
  • Operating System: macOS 10.14.1
@HyperBrain HyperBrain added this to the 5.3.0 milestone Apr 7, 2019
@HyperBrain
Copy link
Member

HyperBrain commented Apr 21, 2019

Added with PR #469

@HyperBrain
Copy link
Member

Released with 5.3.0

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 a pull request may close this issue.

2 participants