Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Installation & Build
  3. Production Builder

Production Builder 1.2.5

Build only what your project actually uses. Intelligent production output for go-live — only the CSS, JS, themes, icons, fonts, and motion your pages need. Do not ship the full framework blindly. Deutsch

Version history

2 releasesv1.3.0

Build only what your project uses — trimmed CSS, JS, themes, icons, fonts, and motion.

1.2.5ChangedExperience report surface

Production report breakdown rows and Experience widgets for bundle / savings.

Project-aware production package: CSS graph closure, runtime subset, themes/icons/motion when used, `--explain` / safelist.

Prefer `velinstyle production` / `build --production` over shipping the full framework bundle for go-live.

Commands

npx velinstyle build --production
# alias:
npx velinstyle production .
velinstyle production . --explain --out ./dist/velin-production

Content-aware trim for CSS, JS (Web Components), themes, icons, fonts, and motion — ship only what the project uses.

Output

Default directory: ./dist/velin-production/

FilePurpose
velinstyle.cssTrimmed + LightningCSS-bundled CSS
velinstyle.jsregister([...detected]) runtime stub (not the full IIFE)
velin-icons.svgSubset sprite
themes/*.cssOnly themes found in content / config
production-report.txt / .jsonSize report
used.jsonExtract + 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', // or ['nordic']
  },
};

Content Scanner — scan your project

Production extracts usage from project sources, not HTML alone. Blade (.blade.php) is first-class for Laravel.

FamilyExtensions
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
ScanNoYes (your project sources)
ScopeLayer subsetCSS + JS + themes + icons + motion
Go-liveGood startPreferred publish path

Prefer Production for publish; Lite for a quick marketing CSS slice.

Review

velinstyle review includes scores.optimization and soft warnings when pages still link the full CDN bundle. Pair with velinstyle check . --profile marketing (or app / docs) before deploy.

CI / pipeline

Run Production after your app build (or as a dedicated step), commit or artifact the dist/velin-production/ folder, and point HTML at those files — not at the unscoped CDN pin. Rebuild when templates or component usage change (--watch locally).

Go-live checklist

  1. velinstyle doctor
  2. velinstyle production . --explain -o ./dist/velin-production
  3. Link dist/velin-production/velinstyle.css + velinstyle.js (+ themes/icons from that folder)
  4. velinstyle review . — check scores.optimization
  5. velinstyle check . --profile marketing (or app / docs)
  6. Deploy with Production assets; pin package 1.2.5+
  7. Optional: velinstyle dashboard · velinstyle doctor . --record (Velin Experience)