package
``` npm install --save postcss-transform-classes ```
npm install postcss-transform-classesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
npm install --save postcss-transform-classesTransforms all classes in a CSS file.
import { camelCase } from 'lodash';
import transformClasses from 'postcss-transform-classes';
return postcss([
transformClasses({
transform: camelCase,
}),
])
.process(...)By default will throw if two different classes produce the same output. In the example above, an error would be thrown if you had .foo-bar and .fooBar. You can disable this by setting allowConflicts: true.
Estimated unpacked size across 8 packages.
2.0 MB
Includes dependencies.
3 direct · 2 outdated