postcss-classname-minifydeprecated

PostCSS plugin to shorten class names

Usage no npm install needed!

<script type="module">
  import postcssClassnameMinify from 'https://cdn.skypack.dev/postcss-classname-minify';
</script>

README

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.