Skip to content

xortive/service-worker-template

👷 worker-template Hello World

A template for kick starting a Cloudflare Workers project using custom builds and webpack

  • Worker code is in src/. The event handler is in index.js, and the handleRequest method is in handleRequest.js, to demonstrate a multi-file project

  • The compiled main module is set using the package.json "main" field. This should be set to the compiled bundle, in this case dist/worker.js

  • Wrangler no longer manages aspects of the build like running "npm install", so this has been added to the build script in package.json

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published