Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Webpack Plugin Recipes

  • 71 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

webpack-plugin-recipes is a Claude Code skill for ai & agent building.

About

webpack-plugin-recipes is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • webpack-plugin-recipes
  • AI & Agent Building
  • AI-coding skill

Webpack Plugin Recipes by the numbers

  • 71 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #5,651 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill webpack-plugin-recipes

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs71
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I helps with ai & agent building tasks during AI-assisted development.?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with webpack plugin recipes.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during AI-assisted development., or when webpack-plugin-recipes is a claude code skill for ai & agent building.

What you get

Structured output aligned to webpack-plugin-recipes: webpack-plugin-recipes, AI & Agent Building.

Files

SKILL.mdMarkdownGitHub ↗

dot-skills Webpack 5 Plugins Best Practices

Cookbook of 26 production-shaped webpack 5 plugins, organized by the problem they solve. Each recipe starts with a clearly defined problem statement ("here's what hurts without this"), shows the naive non-plugin approach, then provides a complete working plugin (60-150 lines) with explanation, variations, and "when NOT to use" guidance.

Companion to `webpack-plugin-authoring` — authoring teaches how to write any plugin correctly; recipes teach which plugin to write for a specific pain point. Recipes cross-reference the authoring rules they apply.

When to Apply

Reference these recipes whenever:

  • A team has a recurring build-time problem that "feels like it should be a plugin" (architecture rules, secret leak prevention, asset organization)
  • You need to integrate webpack output with downstream systems (SSR servers, CDNs, monitoring)
  • You're considering whether to write your own plugin OR adopt an existing one — these recipes show the underlying pattern so you can judge fit
  • Migrating from another bundler and need to recreate framework-style features (filesystem routing, virtual modules)
  • Onboarding new engineers to webpack plugin authoring — recipes give realistic, end-to-end examples

Recipe Categories by Priority

PriorityCategoryImpactPrefix
1Build-time GuardrailsCRITICALguard-
2Build Metadata & ManifestsHIGHmeta-
3Virtual Modules & CodegenHIGHvirtual-
4Code TransformationMEDIUM-HIGHtransform-
5Developer ExperienceMEDIUMdx-
6Asset PipelineMEDIUMassets-

Quick Reference

1. Build-time Guardrails (CRITICAL)

  • `guard-bundle-budget` — Fail builds when initial JS exceeds a per-entry gzipped budget
  • `guard-forbidden-imports` — Fail builds when forbidden imports cross architectural boundaries
  • `guard-required-env-vars` — Fail builds when required environment variables are missing
  • `guard-no-secrets-bundled` — Fail builds when secret-shaped strings leak into client bundles

2. Build Metadata & Manifests (HIGH)

  • `meta-inject-build-info` — Inject __COMMIT__/__BUILD_TIME__ into source via DefinePlugin + emit build-info.json
  • `meta-asset-manifest` — Emit chunk-grouped manifest mapping logical names → hashed filenames
  • `meta-license-notice` — Generate LICENSES.txt by walking the module graph (not node_modules/)
  • `meta-sri-manifest` — Compute SHA-384 SRI hashes per asset for CSP compliance

3. Virtual Modules & Codegen (HIGH)

  • `virtual-module-from-memory` — Resolve virtual:X imports to in-memory strings (Vite-style)
  • `virtual-routes-from-filesystem` — Generate route map from pages/ directory (Next.js-style)
  • `virtual-barrel-from-directory` — Auto-generate barrel re-exports from a directory
  • `virtual-types-from-runtime` — Emit .d.ts from runtime data (config files, JSON schemas)

4. Code Transformation (MEDIUM-HIGH)

  • `transform-replace-library` — Replace react with preact/compat at resolve (with subpath handling)
  • `transform-strip-debug-helpers` — Strip devAssert()/devLog() calls + dev-only imports from production
  • `transform-conditional-polyfill` — Inject only the polyfills target browsers actually need (browserslist + core-js-compat)
  • `transform-banner-with-dynamic-content` — Per-chunk banners with current year, version, git commit
  • `transform-define-from-config` — Drive DefinePlugin substitutions from a flags/staging.json-style file

5. Developer Experience (MEDIUM)

  • `dx-build-duration-report` — Persist build durations, warn when current build is >30% slower than median
  • `dx-notify-on-done` — Desktop notification (local) + Slack webhook (CI) on build complete
  • `dx-diff-changed-chunks` — Print only the chunks that actually changed between rebuilds
  • `dx-open-browser-on-first-build` — Open the dev-server URL AFTER first successful build (not before)

6. Asset Pipeline (MEDIUM)

  • `assets-pre-compress-gzip-brotli` — Emit .gz/.br siblings for CDN-served pre-compression
  • `assets-optimize-images` — Optimize PNG/JPEG with imagemin + cache reuse across rebuilds
  • `assets-route-by-type` — Organize emitted assets into js//css//img//fonts/ subdirectories
  • `assets-skip-empty-chunks` — Delete the 0-byte chunks webpack/splitChunks/mini-css emit unnecessarily
  • `assets-add-cache-busting-query` — Append ?v=<hash> to references of fixed-name assets (manifest.json, sw.js)

How to Use

When the user describes a webpack problem (or asks for a plugin):

1. Identify the problem category (guardrail? metadata? codegen? transformation? dx? asset?) 2. Open the matching recipe file — read the Problem section first to confirm it's the right recipe 3. Use the Plugin section as a working starting point — adapt to the project's specifics 4. Read How it works for the WHY behind each design choice (cross-references the authoring rules) 5. Check Variations for common adaptations and When NOT to use to confirm the fit

For learning plugin authoring patterns more broadly, pair with the `webpack-plugin-authoring` skill — its 44 rules teach the underlying APIs every recipe in this skill applies.

Reference Files

FileDescription
references/_sections.mdCategory definitions and impact levels
assets/templates/_template.mdTemplate for authoring new recipes
metadata.jsonVersion and source references

Related skills

FAQ

What does webpack-plugin-recipes do?

webpack-plugin-recipes is a Claude Code skill for ai & agent building.

When should I use webpack-plugin-recipes?

When you need to helps with ai & agent building tasks during AI-assisted development., or when webpack-plugin-recipes is a claude code skill for ai & agent building.

What are the main capabilities?

webpack-plugin-recipes; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.