webpack-preprocessor-loader

JSON →
library 1.3.0 ·javascript
verified May 27, 2026

A Webpack loader that enables conditional compilation in any text-based file. Current stable version is 1.3.0, released with support for nested if conditions, custom directives, verbose mode with escapeComments option, and builds on a rewritten codebase from v1.1.0+ that enhances multiline comment handling. It works as the last loader, processing raw text before other loaders, and supports JavaScript, HTML, CSS, and more. Unlike DefinePlugin, this loader physically removes code blocks based on directives, reducing bundle size. It requires Webpack 4+ and Node >=6.11.5.

total hits 22
actors 7 distinct systems
last hit 3d ago human
GPTBot
5
Amazonbot
4
MetaBot
4
Script
1
Search engines
1
Humans
3

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇬🇧 United Kingdom · 🇩🇪 Germany