finds.dev

TheLarkInn/webpack-developer-kit

webpack dev kit for writing custom plugins and loaders on the fly. Education/Exploration tool as well.

View on GitHub

★ 228JavaScriptupdated Jun 2018

// the take

A minimal boilerplate for learning how to write webpack loaders and plugins, created by a webpack core contributor. It wires up an inline plugin and a local custom loader with an aliased resolver so you can experiment without the npm link dance. Strictly a learning sandbox, not a production scaffold.

The resolveLoader alias trick for developing loaders locally is genuinely useful and not obvious from the webpack docs alone. JSDoc annotations on compiler/compilation objects give you real type hints in VS Code without needing a TypeScript setup. The inline plugin pattern is a clean way to iterate on hook logic without the boilerplate of a separate class. Comes from TheLarkInn who was on the webpack core team, so the patterns here are idiomatic.

Last touched in 2018 — webpack has gone through versions 4 and 5 since then, and the hooks API changed substantially (tapable v2). The README still references the old `plugin()` method style alongside `hooks.compilation.tap`, which will confuse anyone trying to use this with webpack 5. No explanation of how to test loaders or plugins, which is where most people actually get stuck. The example source files (car.js, engine.js) are throwaway noise that add no educational value.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
228
Forks
42
Language
JavaScript
Last commit
18 Jun 2018

// nearby

If webpack-developer-kit isn't quite it.

All repos →