Production Builder 1.2.5
Build only what your project actually uses. / Nur bauen, was das Projekt wirklich nutzt. Intelligente Produktionsausgabe für Go-Live — nur CSS, JS, Themes, Icons, Fonts und Motion, die deine Seiten brauchen. Nicht blind das komplette Framework ausliefern. English
Versionsverlauf
2 Releasesv1.3.0Nur bauen, was das Projekt nutzt — getrimmtes CSS, JS, Themes, Icons, Fonts und Motion.
1.2.5GeändertExperience-Report-Oberfläche
Production-Report-Aufschlüsselung und Experience-Widgets für Bundle / Einsparungen.
1.2.2NeuProduction Builder
Projektbewusster Production-Build: CSS-Graph, Runtime-Subset, Themes/Icons/Motion bei Bedarf, `--explain` / Safelist.
Für Go-Live `velinstyle production` / `build --production` dem Voll-Bundle vorziehen.
Befehle
npx velinstyle build --production
# Alias:
npx velinstyle production .
velinstyle production . --explain --out ./dist/velin-production
Content-aware Trim für CSS, JS (Web Components), Themes, Icons, Fonts und Motion — nur ausliefern, was das Projekt nutzt.
Ausgabe
Standardverzeichnis: ./dist/velin-production/
| Datei | Zweck |
|---|---|
velinstyle.css | Getrimmtes + LightningCSS-gebündeltes CSS |
velinstyle.js | Runtime-Stub register([...detected]) (nicht die volle IIFE) |
velin-icons.svg | Teilmenge des Sprites |
themes/*.css | Nur Themes aus Content / Config |
production-report.txt / .json | Größenreport |
used.json | Extrakt + Graph-Closure |
Flags
velinstyle production [path] \
--out ./dist/velin-production \
--explain \
--watch \
--report ./report.json \
--safelist modal.css,nordic,check \
--no-js --no-icons --no-themes --no-motion --no-minify
--out / -o— Ausgabeverzeichnis--explain— entfernte CSS / Themes / Icons auflisten--watch— bei Content-Änderung neu bauen--report <file>— JSON- oder Text-Report schreiben--safelist— zusätzliche Klassen / Themes / Icons / CSS-Dateien--no-js,--no-icons,--no-themes,--no-motion,--no-minify
Config
// velinstyle.config.js
export default {
production: {
out: './dist/velin-production',
content: [
'./**/*.{html,htm,js,jsx,ts,tsx,vue,astro,md,mdx,twig}',
'./**/*.blade.php',
],
safelist: [],
themes: 'auto', // oder ['nordic']
},
};
Content Scanner — Scan your project
Production extrahiert Nutzung aus Projektquellen, nicht nur HTML. Blade (.blade.php) ist first-class für Laravel.
| Familie | Extensions |
|---|---|
| HTML | .html, .htm |
| Blade | .blade.php (first-class) |
| Twig | .twig |
| Vue | .vue |
| React | .jsx, .tsx |
| Astro | .astro |
| Markdown | .md, .mdx |
Production Report
Production Report
CSS 168 KB → 131 KB
Runtime 251 KB → 0.9 KB
Icons 42 KB → 1 KB
Themes 13 → 2
Motion 18 → 4
Components 43 → 4
Savings 71 %
vs --preset lite
| Lite | Production | |
|---|---|---|
| Scan | Nein | Ja (Projektquellen) |
| Umfang | Layer-Subset | CSS + JS + Themes + Icons + Motion |
| Go-Live | Guter Einstieg | Bevorzugter Publish-Pfad |
Für Publish: Production. Lite nur für einen schnellen Marketing-CSS-Schnitt.
Review
velinstyle review liefert scores.optimization und weiche Warnungen, wenn Seiten noch das volle CDN-Bundle laden. Vor Deploy mit velinstyle check . --profile marketing (oder app / docs) kombinieren.
CI / Pipeline
Production nach dem App-Build (oder als eigenen Schritt) ausführen, dist/velin-production/ als Artifact speichern und HTML darauf zeigen — nicht auf den ungefilterten CDN-Pin. Bei Template- oder Komponenten-Änderungen neu bauen (lokal --watch).
Go-Live-Checkliste
velinstyle doctorvelinstyle production . --explain -o ./dist/velin-productiondist/velin-production/velinstyle.css+velinstyle.js(+ Themes/Icons aus diesem Ordner) verlinkenvelinstyle review .—scores.optimizationvelinstyle check . --profile marketing(oderapp/docs)- Mit Production-Assets deployen; Pin 1.2.5+
- Optional:
velinstyle dashboard·velinstyle doctor . --record(Velin Experience)
Verwandt
- Customize · Production-Build
- Marketing Lite CSS
- Performance-Audit (
perfbleibt audit-only) - Deploy
- CLI-Referenz