chaincss 2.1.17 → 2.1.18
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/plugins/vite.js +11 -0
- package/package.json +1 -1
- package/src/plugins/vite.ts +13 -0
package/dist/plugins/vite.js
CHANGED
|
@@ -3381,6 +3381,17 @@ const setManifest = (manifest) => {
|
|
|
3381
3381
|
configureServer(_server) {
|
|
3382
3382
|
server = _server;
|
|
3383
3383
|
log("Vite plugin initialized");
|
|
3384
|
+
setTimeout(() => {
|
|
3385
|
+
if (chainCount > 0) {
|
|
3386
|
+
console.log("");
|
|
3387
|
+
console.log("\u26D3\uFE0F ChainCSS \u2014 Dev Mode Ready");
|
|
3388
|
+
console.log(` \u{1F4E6} Static: ${staticCount || 0} styles \u2192 CSS`);
|
|
3389
|
+
console.log(` \u26A1 Dynamic: ${dynamicCount || 0} styles \u2192 JS runtime`);
|
|
3390
|
+
console.log(` \u{1F500} Hybrid: ${hybridCount || 0} styles \u2192 Auto-split`);
|
|
3391
|
+
console.log(` \u{1F4DD} Total: ${chainCount || 0} chain() calls found`);
|
|
3392
|
+
console.log("");
|
|
3393
|
+
}
|
|
3394
|
+
}, 1e3);
|
|
3384
3395
|
_server.watcher.on("change", (filePath) => {
|
|
3385
3396
|
if (filePath.includes("chaincss.config")) {
|
|
3386
3397
|
log("Config changed, clearing cache...");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chaincss",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18",
|
|
4
4
|
"description": "ChainCSS v3.0 - The first CSS-in-JS library with true auto-detection mixed mode. Zero runtime by default, dynamic when you need it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/plugins/vite.ts
CHANGED
|
@@ -246,6 +246,19 @@ const setManifest = (manifest) => {
|
|
|
246
246
|
server = _server;
|
|
247
247
|
log('Vite plugin initialized');
|
|
248
248
|
|
|
249
|
+
// Show stats after server starts
|
|
250
|
+
setTimeout(() => {
|
|
251
|
+
if (chainCount > 0) {
|
|
252
|
+
console.log('');
|
|
253
|
+
console.log('⛓️ ChainCSS — Dev Mode Ready');
|
|
254
|
+
console.log(` 📦 Static: ${staticCount || 0} styles → CSS`);
|
|
255
|
+
console.log(` ⚡ Dynamic: ${dynamicCount || 0} styles → JS runtime`);
|
|
256
|
+
console.log(` 🔀 Hybrid: ${hybridCount || 0} styles → Auto-split`);
|
|
257
|
+
console.log(` 📝 Total: ${chainCount || 0} chain() calls found`);
|
|
258
|
+
console.log('');
|
|
259
|
+
}
|
|
260
|
+
}, 1000);
|
|
261
|
+
|
|
249
262
|
// Watch for config changes
|
|
250
263
|
_server.watcher.on('change', (filePath) => {
|
|
251
264
|
if (filePath.includes('chaincss.config')) {
|