Siphon is a lightweight CLI bundler for web applications that processes HTML documents and resolves their assets (JS, CSS, images) into optimized production builds. At version 0.0.8, it is in early development with basic bundling and watch mode. It differentiates itself with zero configuration for simple projects, using a siphon.config.js for customization. Compared to Webpack or Parcel, it is minimal and opinionated, focusing on HTML-first bundling. The package is installable globally and intended for small to medium projects. However, given its early stage, it lacks advanced features like code splitting or tree shaking and may have limited community support.
npm install siphon-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs Siphon CLI globally, creates a minimal web project with HTML, CSS, and JS files, and bundles them into a single HTML file in the 'build' directory.
Pin version in package.json or use a specific version; check changelog before upgrading.
Always specify the base file explicitly: 'siphon-cli -bundle index.html --w'.
Use 'module.exports = { ... }' in siphon.config.js.Run 'siphon-cli' or use npx: 'npx siphon-cli -bundle index.html'.
For larger apps, consider Webpack, Rollup, or Parcel.
Run 'npm install -g siphon-cli' and ensure npm global bin directory is in PATH (e.g., on Unix: export PATH=$PATH:$(npm bin -g)).
Use the CLI directly via 'siphon-cli -bundle index.html' instead of importing in Node.js.
Specify the correct path: 'siphon-cli -bundle ./index.html --w'