AssetGraph-builder: Web Application Build System

9.3.0 · active · verified Tue Apr 21

AssetGraph-builder is a robust, opinionated build system primarily designed for single-page web applications, leveraging the powerful AssetGraph library. It distinguishes itself by requiring no explicit build manifest; instead, it intelligently discovers all project assets (HTML, CSS, JavaScript, images, fonts, etc.) by traversing the dependency graph from specified HTML entry points. The current stable version is 9.3.0. While no fixed release cadence is stated, the project demonstrates active maintenance with recent updates, with the latest release in December 2023. Key features include bundling, minification (JavaScript with Terser, CSS with cssnano, HTML with html-minifier), advanced image optimization (supporting various tools like Sharp, pngquant, jpegtran), cache busting via MD5-hashed filenames, CDN rewriting, and automatic Content-Security-Policy updates. It excels in optimizing web assets for production, reducing HTTP requests, and improving load times, making it suitable for complex static site and web application deployments without extensive configuration.

Common errors

Warnings

Install

Imports

Quickstart

Installs the global CLI tool and builds a production-ready website from an HTML entry point, optimizing assets to a specified output directory.

npm install -g assetgraph-builder
buildProduction path/to/your/index.html -o path/to/output/directory

view raw JSON →