Meteor Client Bundler

1.3.0 · active · verified Sun Apr 19

meteor-build-client is a command-line interface (CLI) tool designed to bundle the client-side assets of a Meteor application into a static `index.html` and associated CSS/JS files. This allows the client application to be hosted on any static web server or even loaded directly via the `file://` protocol, decoupling it from a live Meteor server for its static assets. The package is currently at version 1.3.0, with recent updates (like 1.3.0) focusing on compatibility with newer Meteor versions (e.g., `meteor@2.8.0`), bug fixes, and user experience improvements like prompt skipping. Its primary differentiator is enabling a pure client-only Meteor build without requiring the full Meteor server stack for serving the initial bundle, which is useful for CDN deployment or offline access. Release cadence appears tied to Meteor compatibility and addressing reported issues.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to install the `meteor-build-client` CLI globally and use it to bundle a Meteor application's client-side assets into a static directory, including options for specifying a ROOT_URL, using a pre-existing Meteor build, and passing application settings, while skipping prompts.

npm install -g meteor-build-client

# Navigate to your Meteor application directory
cd /path/to/my/meteor/app

# Example 1: Build client into a new directory
meteor-build-client ../client-output --url https://my-cdn.com

# Example 2: Use a pre-built Meteor bundle (e.g., from 'meteor build --directory')
meteor build ../full-app-build --directory
meteor-build-client ../client-output-from-full --url https://my-cdn.com --usebuild ../full-app-build

# Example 3: Build with settings.json and skip overwrite prompt
meteor-build-client ../client-output --settings ./settings.json --yci

view raw JSON →