Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-wrangler-migration-webpack-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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-.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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