defuss-astro 1.4.2 → 1.4.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/README.md +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -94,6 +94,6 @@ All commands are run from the root of the project, from a terminal:
|
|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
97
|
-
<img src="assets/defuss_comic.png" />
|
|
97
|
+
<img src="https://raw.githubusercontent.com/kyr0/defuss/refs/heads/main/assets/defuss_comic.png" />
|
|
98
98
|
|
|
99
99
|
<caption><i><b>Come visit us on defuss island!</b></i></caption>
|
package/dist/index.cjs
CHANGED
|
@@ -112,12 +112,12 @@ function index({
|
|
|
112
112
|
glob("**/*.svg", { cwd })
|
|
113
113
|
]);
|
|
114
114
|
if (htmlFiles.length === 0 && svgFiles.length === 0) return;
|
|
115
|
-
logMessage(`\
|
|
115
|
+
logMessage(`\u26A1 Optimizing ${cssFiles.length} CSS stylesheets`);
|
|
116
116
|
const minifyAndWritePromises = [];
|
|
117
117
|
for (const filename of cssFiles) {
|
|
118
118
|
minifyAndWritePromises.push(minifyAndWriteFile(cwd, filename, "css"));
|
|
119
119
|
}
|
|
120
|
-
logMessage(`\
|
|
120
|
+
logMessage(`\u26A1 Optimizing ${svgFiles.length} SVG vector graphics`);
|
|
121
121
|
for (const filename of svgFiles) {
|
|
122
122
|
minifyAndWritePromises.push(minifyAndWriteFile(cwd, filename, "svg"));
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@ function index({
|
|
|
125
125
|
const end = node_perf_hooks.performance.now();
|
|
126
126
|
const deltaT = end - start;
|
|
127
127
|
const humanTime = deltaT < 1e3 ? `${deltaT.toFixed(0)}ms` : `${(deltaT / 1e3).toFixed(1)}s`;
|
|
128
|
-
logMessage(`\
|
|
128
|
+
logMessage(`\u26A1 Optimization completed in ${humanTime}`);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -108,12 +108,12 @@ function index({
|
|
|
108
108
|
glob("**/*.svg", { cwd })
|
|
109
109
|
]);
|
|
110
110
|
if (htmlFiles.length === 0 && svgFiles.length === 0) return;
|
|
111
|
-
logMessage(`\
|
|
111
|
+
logMessage(`\u26A1 Optimizing ${cssFiles.length} CSS stylesheets`);
|
|
112
112
|
const minifyAndWritePromises = [];
|
|
113
113
|
for (const filename of cssFiles) {
|
|
114
114
|
minifyAndWritePromises.push(minifyAndWriteFile(cwd, filename, "css"));
|
|
115
115
|
}
|
|
116
|
-
logMessage(`\
|
|
116
|
+
logMessage(`\u26A1 Optimizing ${svgFiles.length} SVG vector graphics`);
|
|
117
117
|
for (const filename of svgFiles) {
|
|
118
118
|
minifyAndWritePromises.push(minifyAndWriteFile(cwd, filename, "svg"));
|
|
119
119
|
}
|
|
@@ -121,7 +121,7 @@ function index({
|
|
|
121
121
|
const end = performance.now();
|
|
122
122
|
const deltaT = end - start;
|
|
123
123
|
const humanTime = deltaT < 1e3 ? `${deltaT.toFixed(0)}ms` : `${(deltaT / 1e3).toFixed(1)}s`;
|
|
124
|
-
logMessage(`\
|
|
124
|
+
logMessage(`\u26A1 Optimization completed in ${humanTime}`);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "defuss-astro",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"vite": "^6.3.5",
|
|
76
76
|
"fast-glob": "^3.3.2",
|
|
77
77
|
"svgo": "^3.3.2",
|
|
78
|
+
"lightningimg": "^1.0.3",
|
|
78
79
|
"purgecss": "^7.0.2",
|
|
79
80
|
"file-type": "^19.6.0",
|
|
80
|
-
"defuss": "2.0.
|
|
81
|
-
"lightningimg": "1.0.2",
|
|
81
|
+
"defuss": "2.0.17",
|
|
82
82
|
"defuss-vite": "1.1.3"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|