# workers-webpack-example **Repository Path**: mirrors_cloudflare/workers-webpack-example ## Basic Information - **Project Name**: workers-webpack-example - **Description**: An example of building a Cloudflare Worker with Webpack - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Workers Webpack Example ==== [Cloudflare Workers](http://developers.cloudflare.com/workers/) allow you to write JavaScript which runs on all of Cloudflare's 160+ global data centers. This repo is an example of how to combine multiple files and dependencies to create a Worker using the [Webpack](https://webpack.js.org/) build tool. The actual Worker replaces the content of your site with a Worker which returns the current time in the timezone of the caller's choice. ### Dependencies - [npm](https://www.npmjs.com/get-npm) - [jq](https://stedolan.github.io/jq/) (for the preview script) - [cURL](https://curl.haxx.se/) (for the preview script) ### Instructions - `npm install` - `npm run build` To open the Workers preview with the built Worker: - `npm run preview`