tailwindcss-injector 1.0.10 → 1.0.11-alpha.1
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/postcss.cjs +2 -2
- package/dist/postcss.js +2 -2
- package/package.json +5 -5
package/dist/postcss.cjs
CHANGED
|
@@ -218,7 +218,7 @@ var creator = (options) => {
|
|
|
218
218
|
for (const dep of deps) {
|
|
219
219
|
contentEntries.push(`${_node.removeAllExtensions.call(void 0, dep)}.${extensionsGlob}`);
|
|
220
220
|
}
|
|
221
|
-
const uniqueEntries =
|
|
221
|
+
const uniqueEntries = [...new Set(contentEntries)];
|
|
222
222
|
const { content: existingContent } = tailwindcssConfig;
|
|
223
223
|
if (!existingContent || Array.isArray(existingContent)) {
|
|
224
224
|
tailwindcssConfig.content = uniqueEntries;
|
|
@@ -226,7 +226,7 @@ var creator = (options) => {
|
|
|
226
226
|
const normalizedContent = { ...existingContent };
|
|
227
227
|
const currentFiles = normalizedContent.files;
|
|
228
228
|
const normalizedFiles = Array.isArray(currentFiles) ? currentFiles : typeof currentFiles === "string" ? [currentFiles] : [];
|
|
229
|
-
normalizedContent.files =
|
|
229
|
+
normalizedContent.files = [.../* @__PURE__ */ new Set([...normalizedFiles, ...uniqueEntries])];
|
|
230
230
|
tailwindcssConfig.content = normalizedContent;
|
|
231
231
|
} else {
|
|
232
232
|
tailwindcssConfig.content = uniqueEntries;
|
package/dist/postcss.js
CHANGED
|
@@ -218,7 +218,7 @@ var creator = (options) => {
|
|
|
218
218
|
for (const dep of deps) {
|
|
219
219
|
contentEntries.push(`${removeAllExtensions(dep)}.${extensionsGlob}`);
|
|
220
220
|
}
|
|
221
|
-
const uniqueEntries =
|
|
221
|
+
const uniqueEntries = [...new Set(contentEntries)];
|
|
222
222
|
const { content: existingContent } = tailwindcssConfig;
|
|
223
223
|
if (!existingContent || Array.isArray(existingContent)) {
|
|
224
224
|
tailwindcssConfig.content = uniqueEntries;
|
|
@@ -226,7 +226,7 @@ var creator = (options) => {
|
|
|
226
226
|
const normalizedContent = { ...existingContent };
|
|
227
227
|
const currentFiles = normalizedContent.files;
|
|
228
228
|
const normalizedFiles = Array.isArray(currentFiles) ? currentFiles : typeof currentFiles === "string" ? [currentFiles] : [];
|
|
229
|
-
normalizedContent.files =
|
|
229
|
+
normalizedContent.files = [.../* @__PURE__ */ new Set([...normalizedFiles, ...uniqueEntries])];
|
|
230
230
|
tailwindcssConfig.content = normalizedContent;
|
|
231
231
|
} else {
|
|
232
232
|
tailwindcssConfig.content = uniqueEntries;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-injector",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11-alpha.1",
|
|
5
5
|
"description": "tsup(esbuild) build package template",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"node": "^20.19.0 || >=22.12.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"fs-extra": "^11.3.
|
|
37
|
+
"fs-extra": "^11.3.4",
|
|
38
38
|
"htmlparser2": "^10.1.0",
|
|
39
39
|
"magic-string": "^0.30.21",
|
|
40
|
-
"postcss": "^8.5.
|
|
40
|
+
"postcss": "^8.5.8",
|
|
41
41
|
"tailwindcss": "^3.4.19",
|
|
42
|
-
"@weapp-tailwindcss/shared": "1.1.
|
|
43
|
-
"tailwindcss-config": "1.1.
|
|
42
|
+
"@weapp-tailwindcss/shared": "1.1.3-alpha.1",
|
|
43
|
+
"tailwindcss-config": "1.1.5-alpha.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"dev": "tsup --watch --sourcemap",
|