0.1.2 • Published 4 years ago

postcss-classname-minify v0.1.2

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

PostCSS Plugin Classname Minify

PostCSS plugin to shorten class names.

.foo {
    /* Input example */
}
.bar {
    /* Input example */
}
._ {
  /* Output example */
}
.z {
  /* Output example */
}

Usage

Check your project for existing PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you already use PostCSS, add the plugin to plugins list:

module.exports = {
  plugins: [
+   require('postcss-classname-minify'),
    require('autoprefixer')
  ]
}

If you do not use PostCSS, add it according to official docs and set this plugin in settings.