Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

webpack-plugin-recipes

БесплатноБез исполняемых скриптовНе проверен

Use whenever you face a webpack-build problem that ends with needing to write a plugin — 26 production-shaped recipes covering bundle-size budgets, forbidden…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

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

Priority Category Impact Prefix
1 Build-time Guardrails CRITICAL guard-
2 Build Metadata & Manifests HIGH meta-
3 Virtual Modules & Codegen HIGH virtual-
4 Code Transformation MEDIUM-HIGH transform-
5 Developer Experience MEDIUM dx-
6 Asset Pipeline MEDIUM assets-

Quick Reference

1. Build-time Guardrails (CRITICAL)

2. Build Metadata & Manifests (HIGH)

3. Virtual Modules & Codegen (HIGH)

4. Code Transformation (MEDIUM-HIGH)

5. Developer Experience (MEDIUM)

6. Asset Pipeline (MEDIUM)

  • [assets-pre-compress-gzip-brotli](reference
Полный SKILL.md на GitHub

Установить webpack-plugin-recipes в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/assets-add-cache-busting-query.mdreferences/assets-optimize-images.mdreferences/assets-pre-compress-gzip-brotli.mdreferences/assets-route-by-type.mdreferences/assets-skip-empty-chunks.mdreferences/dx-build-duration-report.mdreferences/dx-diff-changed-chunks.mdreferences/dx-notify-on-done.mdreferences/dx-open-browser-on-first-build.mdreferences/guard-bundle-budget.mdreferences/guard-forbidden-imports.mdreferences/guard-no-secrets-bundled.mdreferences/guard-required-env-vars.mdreferences/meta-asset-manifest.mdreferences/meta-inject-build-info.mdreferences/meta-license-notice.mdreferences/meta-sri-manifest.mdreferences/transform-banner-with-dynamic-content.mdreferences/transform-conditional-polyfill.mdreferences/transform-define-from-config.mdreferences/transform-replace-library.mdreferences/transform-strip-debug-helpers.mdreferences/virtual-barrel-from-directory.mdreferences/virtual-module-from-memory.mdreferences/virtual-routes-from-filesystem.mdreferences/virtual-types-from-runtime.md

FAQ

Что делает скилл webpack-plugin-recipes?

Use whenever you face a webpack-build problem that ends with needing to write a plugin — 26 production-shaped recipes covering bundle-size budgets, forbidden architectural imports, env-var validation, secret-leak prevention, build-info injection, asset manifests, license walking, SRI hashes, virtual modules (Vite-style), filesystem routing (Next.js-style), generated barrels, runtime-driven TS types, library replacement (react→preact), debug-stripping, conditional polyfills, dynamic banners, feature flags, build-duration regression tracking, desktop/Slack notifications, changed-chunks diffing, browser auto-open, gzip/brotli pre-compression, image optimization, type-based dist layout, empty-chunk cleanup, cache-busting query strings. Each recipe is a complete working plugin drawn from production patterns at Next.js, Storybook, webpack-contrib. Trigger when the user asks how to do X with webpack or whether a plugin exists for X. Companion to webpack-plugin-authoring.

Как установить скилл webpack-plugin-recipes?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл webpack-plugin-recipes запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить webpack-plugin-recipes с