@tailwindcss/vite 0.0.0-development.3 → 0.0.0-development.4
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/dist/index.mjs +2 -2
- package/package.json +18 -9
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { IO, Parsing, scanFiles } from "@tailwindcss/oxide";
|
|
3
3
|
import path from "path";
|
|
4
|
-
import { compile, optimizeCss
|
|
4
|
+
import { compile, optimizeCss } from "tailwindcss";
|
|
5
5
|
function tailwindcss() {
|
|
6
6
|
let server = null;
|
|
7
7
|
let candidates = /* @__PURE__ */ new Set();
|
|
@@ -40,7 +40,7 @@ function tailwindcss() {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
function generateCss(css) {
|
|
43
|
-
return
|
|
43
|
+
return optimizeCss(compile(css, Array.from(candidates)));
|
|
44
44
|
}
|
|
45
45
|
let initialScan = function() {
|
|
46
46
|
let delayInMs = 100;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/vite",
|
|
3
|
-
"version": "0.0.0-development.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
"version": "0.0.0-development.4",
|
|
4
|
+
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "https://github.com/tailwindlabs/tailwindcss.git",
|
|
7
|
+
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
|
|
8
|
+
"homepage": "https://tailwindcss.com",
|
|
8
9
|
"files": [
|
|
9
|
-
"dist"
|
|
10
|
+
"dist/"
|
|
10
11
|
],
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
@@ -15,7 +16,15 @@
|
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"tailwindcss": "0.0.0-development.
|
|
19
|
-
"
|
|
19
|
+
"@tailwindcss/oxide": "^0.0.0-development.4",
|
|
20
|
+
"tailwindcss": "^0.0.0-development.4"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^20.11.17",
|
|
24
|
+
"vite": "^5.0.11"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup-node ./src/index.ts --format esm --dts",
|
|
28
|
+
"dev": "pnpm run build -- --watch"
|
|
20
29
|
}
|
|
21
|
-
}
|
|
30
|
+
}
|