# class-names-loader **Repository Path**: mirrors_ecomfe/class-names-loader ## Basic Information - **Project Name**: class-names-loader - **Description**: Webpack loader to transform style into classNames bindings - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-11 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # class-names-loader    Webpack loader to transform style into classNames bindings. Inspired by [itsmepetrov/classnames-loader](https://github.com/itsmepetrov/classnames-loader) and have a total written to introduce features and breaking changes like: 1. Written in TypeScript. 2. Support `style-loader`'s `esModule` format only. 3. Compatible both default export and named export. 4. Drop support for IE < 9 to minimize output code. 5. Produce ES module code to enable optimizations like module concatenation. We will keep active maintain. ## Install ```shell npm install -D @ecomfe/class-names-loader ``` ## Auto binding This loader is to bind a CSS modules enabled `style-loader` output into a `classnames` compatible function, received class names are mapped to CSS modules transformed ones: ```js import c from './index.css'; // May renders as `