1.0.7 • Published 3 years ago

postcss-tailwind-data-attr v1.0.7

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

PostCSS Tailwind Data Attr

PostCSS plugin that moves tailwind classes to data attributes.

.tw-text-left {}
.md:tw-text-xl {}
[data-tw="text-left"] {}
[data-tw="md:text-xl"] {}

Installation

npm install postcss-tailwind-data-attr

Usage

Check you project for existed 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-tailwind-data-attr'),
    require('autoprefixer')
  ]
}

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

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago