@vituum/vite-plugin-tailwindcss 1.0.0-alpha.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +7 -6
- package/types/index.d.ts +3 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<a href="https://npmjs.com/package/@vituum/vite-plugin-
|
|
2
|
-
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@vituum/vite-plugin-
|
|
1
|
+
<a href="https://npmjs.com/package/@vituum/vite-plugin-tailwindcss"><img src="https://img.shields.io/npm/v/@vituum/vite-plugin-tailwindcss.svg" alt="npm package"></a>
|
|
2
|
+
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@vituum/vite-plugin-tailwindcss.svg" alt="node compatility"></a>
|
|
3
3
|
|
|
4
4
|
# ⚡️🎨 ViteTailwindCSS
|
|
5
5
|
Adds out of the box support for TailwindCSS with following PostCSS plugins:
|
|
@@ -21,12 +21,12 @@ export default {
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
* Don't forget to also add your `tailwind.config.js`, [learn more here](https://tailwindcss.com/docs/guides/vite).
|
|
24
|
-
* If you want to add more PostCSS plugins,
|
|
24
|
+
* If you want to add more PostCSS plugins, add them via [css.postcss.plugins](https://vitejs.dev/config/shared-options.html#css-postcss).
|
|
25
25
|
* If you want to use `postcss.config.cjs` add `css.postcss: process.cwd()`, PostCSS config and it's plugins will be used instead
|
|
26
26
|
|
|
27
27
|
Read the [docs](https://vituum.dev/config/plugins-options.html#vituum-postcss) to learn more about plugin options
|
|
28
28
|
|
|
29
29
|
### Requirements
|
|
30
30
|
|
|
31
|
-
- [Node.js LTS (
|
|
31
|
+
- [Node.js LTS (16.x)](https://nodejs.org/en/download/)
|
|
32
32
|
- [Vite](https://vitejs.dev/)
|
package/package.json
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vituum/vite-plugin-tailwindcss",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"tsc": "tsc",
|
|
8
9
|
"eslint": "eslint '**/*.js' --fix"
|
|
9
10
|
},
|
|
10
11
|
"dependencies": {
|
|
11
|
-
"vituum": "^1.0.0
|
|
12
|
+
"vituum": "^1.0.0",
|
|
12
13
|
"autoprefixer": "^10.4.14",
|
|
13
14
|
"postcss": "^8.4.24",
|
|
14
15
|
"postcss-import": "^15.1.0",
|
|
15
16
|
"postcss-nesting": "^11.3.0",
|
|
16
|
-
"postcss-custom-media": "^9.1.
|
|
17
|
+
"postcss-custom-media": "^9.1.5",
|
|
17
18
|
"tailwindcss": "^3.3.2"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
|
-
"@types/node": "^20.3.
|
|
21
|
+
"@types/node": "^20.3.2",
|
|
21
22
|
"vite": "^4.3.9",
|
|
22
23
|
"eslint": "^8.43.0",
|
|
23
24
|
"eslint-config-standard": "^17.1.0",
|
|
@@ -32,11 +33,11 @@
|
|
|
32
33
|
"./types": "./types/*"
|
|
33
34
|
},
|
|
34
35
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
36
|
+
"node": ">=16.0.0",
|
|
36
37
|
"npm": ">=9.0.0"
|
|
37
38
|
},
|
|
38
39
|
"repository": {
|
|
39
40
|
"type": "git",
|
|
40
|
-
"url": "git+https://github.com/vituum/vite-plugin-
|
|
41
|
+
"url": "git+https://github.com/vituum/vite-plugin-tailwindcss.git"
|
|
41
42
|
}
|
|
42
43
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface PluginUserConfig {
|
|
2
|
-
import?: import('@vituum/vite-plugin-
|
|
2
|
+
import?: import('@vituum/vite-plugin-tailwindcss/types/postcssImport.d.ts').AtImportOptions
|
|
3
3
|
nesting?: import('postcss-nesting').pluginOptions
|
|
4
4
|
customMedia?: import('postcss-custom-media').pluginOptions
|
|
5
5
|
autoprefixer?: import('autoprefixer').Options
|
|
6
6
|
tailwindcss?: import('tailwindcss').Config
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
export default function plugin(options?: PluginUserConfig) : import('vite').Plugin
|