@abcaustralia/postcss-to-camel-case
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

postcss-to-camel-case

Convert all CSS Selectors into camelCase. Useful for converting an existing project to use camelCase selectors to follow the default CSS Modules conventions.

Usage

This plugin is most useful with the replace feature of PostCSS CLI.

npx postcss ./path/to/css/**/*.css --replace --no-map --use @abcaustralia/postcss-to-camel-case

Or with a config file:

module.exports = (ctx) => ({
  map: ctx.options.map,
  parser: ctx.options.parser,
  plugins: [require("@abcaustralia/postcss-to-camel-case")],
});
npx postcss ./path/to/css/**/*.css --replace --no-map --config ./postcss.config.js

Package Sidebar

Install

npm i @abcaustralia/postcss-to-camel-case

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

6.58 kB

Total Files

5

Last publish

Collaborators

  • lachlanwellsatabc
  • dmd-streamingplatform
  • nvoabc
  • lindawang
  • abcstu
  • dnops
  • natlab
  • ailia.rizvi
  • abciview.frontenddev
  • abc-profiles-ci
  • abc-search-ci
  • dylanabc
  • silvervest