Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Asking wrangler just to upload (not build anything) #954

Closed
ghost opened this issue Dec 13, 2019 · 7 comments · Fixed by #1677
Closed

Asking wrangler just to upload (not build anything) #954

ghost opened this issue Dec 13, 2019 · 7 comments · Fixed by #1677
Labels
feature Feature requests and suggestions

Comments

@ghost
Copy link

ghost commented Dec 13, 2019

Is it possible to get wrangler to upload an existing worker script without doing anything else? I have my build all configured nicely the way I want it and targeting webworker, so I only want it to use the output from that 🙂

@ashleymichal ashleymichal added feature Feature requests and suggestions user report labels Dec 13, 2019
@ashleymichal
Copy link
Contributor

this looks related to #820 and a few other discussions we have been having around splitting out the steps in wrangler publish. we should group those and examine the common threads.

@EverlastingBugstopper
Copy link
Contributor

@aldens it sounds like you might want either a webpack_config field pointing to your webpack.config.js file, OR if you want to run npm build on your own, you can set your type = "javascript" and then set main: "./dist/worker.js" in your package.json and wrangler publish will just upload what you've already built.

@ghost
Copy link
Author

ghost commented Dec 20, 2019

Ah, it seems that it's just for Sites that it always builds stuff. Which is probably necessary for the asset handling?

Setting custom webpack.config.js might help once fix for #905 comes out, yep!

@sepbot
Copy link

sepbot commented Jan 21, 2020

You can just call the API yourself: https://developers.cloudflare.com/workers/tooling/api/scripts/

@ashleymichal ashleymichal added this to the wrangler build milestone May 13, 2020
@stale
Copy link

stale bot commented Jul 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Sep 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@xortive
Copy link
Contributor

xortive commented Feb 25, 2021

closing since this is addressed by #1677, which will be going out as part of an RC in the near future

@xortive xortive closed this as completed Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature requests and suggestions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants