This package has been deprecated

Author message:

broken do not use

postcss-classname-minify
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i postcss-classname-minify

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • maxholman