cloudflare / workers-docs

🌥👷‍♀️ The documentation site for Cloudflare Workers
https://developers.cloudflare.com/workers
106 stars 151 forks source link

Webpack usage and npm dependencies could use more explanation #978

Closed kentonv closed 4 years ago

kentonv commented 4 years ago

The docs are not very clear on how to use npm dependencies.

The answer (I believe?) is to use webpack. There is a page on webpack:

https://developers.cloudflare.com/workers/tooling/wrangler/webpack/

But this page is also not very clear -- it seems to assume the reader is already deeply familiar with webpack, and only provides some advanced details.

We should improve the doc so that people new to webpack don't need to go learn webpack first, and highlight better than this is the way to use npm dependencies.