cloudflare · Cloudflare Workers Docs
Workers Webpack
A guide for migrating Webpack configurations from Wrangler v1 to v2, including setting the webpack type, managing custom configuration files via webpackconfig, and handling environment-specific builds.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Webpack
A guide for migrating Webpack configurations from Wrangler v1 to v2, including setting the webpack type, managing custom configuration files via webpackconfig, and handling environment-specific builds.
When To Use
Use when migrating a Cloudflare Workers project from Wrangler v1 to v2 and needing to preserve or update custom Webpack build configurations and environment-specific settings.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-wrangler-migration-webpack-workflow-guide.md | A guide detailing how to migrate Webpack configurations from Wrangler v1 to the latest version of Wrangler. | Questions about a guide detailing how to migrate Webpack configurations from Wrangler v1 to the latest version of Wrangler. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-config.text | A webpack configuration object targeting webworker with entry point definitions for migrating to Wrangler v2. | Exact payloads, commands, or snippets shown in A webpack configuration object targeting webworker with entry point definitions for migrating to Wrangler v2. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-config-2.text | A webpack configuration object targeting webworker with entry and mode properties for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A webpack configuration object targeting webworker with entry and mode properties for Cloudflare Workers. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-config-jso.text | A JSON configuration object specifying the webpack type and configuration file path for a Cloudflare Workers project. | Exact payloads, commands, or snippets shown in A JSON configuration object specifying the webpack type and configuration file path for a Cloudflare Workers project. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-wrangler-migration.text | A TOML configuration file demonstrating the legacy webpack settings for a Cloudflare Worker migration. | Exact payloads, commands, or snippets shown in A TOML configuration file demonstrating the legacy webpack settings for a Cloudflare Worker migration. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-wrangler-webpack-c.text | A JSON configuration object demonstrating how to specify webpack configuration files for different environments in a wrangler configuration. | Exact payloads, commands, or snippets shown in A JSON configuration object demonstrating how to specify webpack configuration files for different environments in a... |
examples/workers-wrangler-migration-webpack-cloudflare-workers-wrangler-migration-2.text | A TOML configuration file demonstrating how to specify webpackconfig paths for different environments during a Wrangler migration. | Exact payloads, commands, or snippets shown in A TOML configuration file demonstrating how to specify webpackconfig paths for different environments during a Wrangl... |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-config-3.text | A webpack configuration object targeting the webworker environment for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A webpack configuration object targeting the webworker environment for Cloudflare Workers. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-migration-.text | A directory tree structure illustrating the file organization for migrating a Cloudflare Workers project from legacy webpack to wrangler. | Exact payloads, commands, or snippets shown in A directory tree structure illustrating the file organization for migrating a Cloudflare Workers project from legacy... |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-config-4.text | A webpack configuration object for migrating Cloudflare Workers from legacy Wrangler to version 2. | Exact payloads, commands, or snippets shown in A webpack configuration object for migrating Cloudflare Workers from legacy Wrangler to version 2. |
examples/workers-wrangler-migration-webpack-cloudflare-workers-webpack-config-5.text | A webpack configuration file demonstrating the target webworker setting and URL polyfill plugin for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A webpack configuration file demonstrating the target webworker setting and URL polyfill plugin for Cloudflare Workers. |
What This Skill Covers
- This page is for Wrangler v1, which has been deprecated.Learn how to update to the latest version of Wrangler.
- Main sections:
Sensible defaults,Bring your own configuration,Example,Example with multiple environments,Using with Workers Sites.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/wrangler/migration/v1-to-v2/wrangler-legacy/webpack/index.md
