Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
📝
Browse files Browse the repository at this point in the history
  • Loading branch information
ky-is committed Aug 17, 2018
1 parent 362ff37 commit 4ea07d9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[postcss-preset-env](https://preset-env.cssdb.org/features) enables you to write CSS from upcoming standards, polyfilled based on your browserslist configuration.

[postcss-import](https://github.com/postcss/postcss-import) ensures Tailwind's imports play nice with PostCSS, and gives you the option to @import css files.
[postcss-import](https://github.com/postcss/postcss-import) ensures Tailwind's imports play nice with PostCSS.

## Install

Expand All @@ -16,7 +16,7 @@ Requires node 6 or later.

## Usage

You can use global Tailwind classes as normal, but `shadowLookup` is also supported for `@apply` mixins directly in `.vue` modules. In `src/components/HelloWorld.vue` of the auto-generated cli app:
In addition to inline classes, `shadowLookup` is supported to `@apply` mixins directly in `.vue` modules. For example, in `src/components/HelloWorld.vue` of the auto-generated cli app:
```html
<style lang="postcss" scoped>
h1 {
Expand All @@ -35,8 +35,3 @@ Applies a purple text color with scoped, browser-prefixed CSS, while PurgeCSS st
`postcss-preset-env`: Configured to stage 2 by default, as these draft proposals are considered reasonably stable. If you want to enable more experimental features like nested classes (`a { &hover: {...} }`), change to `stage: 0`.

`@fullhuman/postcss-purgecss`: Purgecss removes all CSS classes that it can't find reference to. By default, all Vue and style files in the `src` folder are included. Adjust `content` array if you have CSS classes in other files.

## Thanks

https://github.com/primos63/vue-cli-plugin-tailwindcss
https://github.com/ti-pa-to/vue-cli-plugin-tailwind-purge-css

0 comments on commit 4ea07d9

Please sign in to comment.