A webpack plugin that adds a prefix to all CSS selectors (classes and IDs) in specified files. Version 1.0.3 is the latest and only available release. It is a lightweight plugin with no updates since initial publication. Compared to similar tools like postcss-prefixer, it integrates directly as a webpack plugin rather than a PostCSS plugin, offering ignore patterns for selectors.
npm install postcss-prefix-webpackNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to add the plugin to webpack config with input/output files and prefix options.
Use PostCSS loader with postcss-prefixer instead if you need to prefix CSS in webpack bundle imports.
For ignore, use regex for partial matching (e.g., /selector-/) or exact ID/class strings (e.g., '.ignore', '#ignore').
Use 'new PostCSSPrefix({...})' instead of 'PostCSSPrefix({...})'.Provide prefixProperties object with 'prefix' and optional 'ignore' fields.
No dependency data recorded yet.