Zum Inhalt springen
VelinStyle v1.3.0

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.0

Nur 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.

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/

DateiZweck
velinstyle.cssGetrimmtes + LightningCSS-gebündeltes CSS
velinstyle.jsRuntime-Stub register([...detected]) (nicht die volle IIFE)
velin-icons.svgTeilmenge des Sprites
themes/*.cssNur Themes aus Content / Config
production-report.txt / .jsonGrößenreport
used.jsonExtrakt + 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

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.

FamilieExtensions
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

LiteProduction
ScanNeinJa (Projektquellen)
UmfangLayer-SubsetCSS + JS + Themes + Icons + Motion
Go-LiveGuter EinstiegBevorzugter 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

  1. velinstyle doctor
  2. velinstyle production . --explain -o ./dist/velin-production
  3. dist/velin-production/velinstyle.css + velinstyle.js (+ Themes/Icons aus diesem Ordner) verlinken
  4. velinstyle review .scores.optimization
  5. velinstyle check . --profile marketing (oder app / docs)
  6. Mit Production-Assets deployen; Pin 1.2.5+
  7. Optional: velinstyle dashboard · velinstyle doctor . --record (Velin Experience)

Verwandt