Skip to content

Commit 3372b0f

Browse files
committed
Use Tailwind 1.x
1 parent 8f3c8f1 commit 3372b0f

File tree

4 files changed

+20
-23
lines changed

4 files changed

+20
-23
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"author": "Marco Mark <[email protected]>",
2727
"license": "MIT",
2828
"dependencies": {
29-
"@fullhuman/postcss-purgecss": "^1.1.0",
30-
"lodash": "^4.17.11",
31-
"tailwindcss": "^0.7.4"
29+
"@fullhuman/postcss-purgecss": "^1.3.0",
30+
"lodash": "^4.17.15",
31+
"tailwindcss": "^1.1.2"
3232
},
3333
"devDependencies": {
34-
"@babel/core": "^7.3.3",
35-
"@babel/preset-env": "7.3.1",
36-
"rollup": "^1.1.2",
37-
"rollup-plugin-babel": "^4.3.2"
34+
"@babel/core": "^7.6.4",
35+
"@babel/preset-env": "7.6.3",
36+
"rollup": "^1.25.1",
37+
"rollup-plugin-babel": "^4.3.3"
3838
}
3939
}

readme.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# VuePress Plugin to add Tailwind CSS
22

3+
## Overview
4+
5+
This plugin will install Tailwind CSS ^1.1.2 ready for you to import into your VuePress theme or project. You will need to follow the [Tailwind CSS installation](https://tailwindcss.com/docs/installation/) instructions and add Tailwind to your CSS. E.g. add the tailwind directives to your styl or css files.
6+
7+
```styl
8+
@tailwind base;
9+
@tailwind components;
10+
@tailwind utilities;
11+
```
12+
313
## Installation
414

515
```sh
@@ -19,7 +29,7 @@ module.exports = {
1929

2030
## Configuration options
2131

22-
You can overwrite the default Tailwind CSS configuration if required, otherwise the default config will be loaded.
32+
Please follow the [Tailwind CSS configuration](https://tailwindcss.com/docs/configuration/) instructions. If you are using the default filename, you do not need to specify it here. If you would like to load a custom configuration file with a different filename to the default `tailwind.config.js` you can specify this in the plugin options.
2333

2434
```js
2535
module.exports = {
@@ -32,7 +42,7 @@ module.exports = {
3242
}
3343
```
3444

35-
By default PurgeCSS will be applied when running vuepress build (production). You can optionally disable this if you do not want to use PurgeCSS.
45+
By default PurgeCSS will be applied when running VuePress build (production). You can optionally disable this if you do not want to use PurgeCSS.
3646

3747
```js
3848
module.exports = {

rollup.config.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,10 @@ export default [
88
format: 'cjs',
99
},
1010
external: [
11-
"path",
1211
"lodash",
1312
],
1413
plugins: [
1514
RollupPluginBabel(),
1615
],
17-
},
18-
{
19-
input: 'src/tailwind.config.js',
20-
output: {
21-
file: 'dist/tailwind.config.js',
22-
format: 'cjs',
23-
},
24-
external: [],
25-
plugins: [
26-
RollupPluginBabel(),
27-
],
2816
}
2917
]

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from 'path'
21
import { merge } from 'lodash'
32

43
const defaultOptions = {
@@ -52,7 +51,7 @@ const plugin = (options = {}, context) => {
5251
],
5352

5453
/**
55-
* Ensure default resets and normalised classes ar enot removed by PurgeCSS
54+
* Ensure default resets and normalised classes are not removed by PurgeCSS
5655
*/
5756
whitelistPatterns: [
5857
/^(h\d|p$|ul|li$|div|ol|table|td$|th$|thead|tbody|main|input|button|form|md-|hljs)/

0 commit comments

Comments
 (0)