postcss-transform-classes

1.0.0 • Public • Published

postcss-transform-classes

npm install --save postcss-transform-classes

Transforms 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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01
0.0.11

Package Sidebar

Install

npm i postcss-transform-classes

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • jacobp100