postcss-unprefixed

0.0.2 • Public • Published

postcss-unprefixed

PostCSS plugin to remove vendor prefixes.

.accordion {
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.accordion {
  transition: all 0.4s ease;
}

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-unprefixed')(options),
    require('autoprefixer')
  ]
}

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

Options

options.exclude (string or array) List or prefixes to preserve (e.g. -webkit-).

Package Sidebar

Install

npm i postcss-unprefixed

Weekly Downloads

20

Version

0.0.2

License

MIT

Unpacked Size

6.17 kB

Total Files

6

Last publish

Collaborators

  • laurenashpole