Registry / devops / pallet-bundler

pallet-bundler

JSON →
library1.0.12jsnpmunverified

Pallet is a zero-config JavaScript bundler that processes an HTML entry point and automatically bundles linked JS and CSS into separate files. Version 1.0.12 is the latest stable release with infrequent updates. It offers a simple CLI with options for entry, output directory, and file naming, plus a config file for customization. Unlike webpack or Parcel, Pallet focuses on minimal setup and HTML-first bundling, making it suitable for small static sites or prototyping.

npm install pallet-bundler
INSTALL
IMPORT
SIG · PALLET-BUNDLER
P
pallet-bundler
devopsjavascriptv1.0.12
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pallet bundler
import { bundle } from 'pallet-bundler'
const pallet = require('pallet-bundler')
Exports a single bundle function for programmatic use; no default export.
Pallet CLI
npx pallet
npm run pallet
The CLI is invoked via npx or global install; no programmatic CLI export.
Config file
module.exports = { ... }
export default { ... }
Config file uses CommonJS, not ES modules.

Creates a simple project with HTML, CSS, and JS files, then bundles them into a dist folder using CLI.

mkdir my-project && cd my-project echo '<html><head><link rel="stylesheet" href="style.css"></head><body><script src="script.js"></script></body></html>' > index.html echo 'body { background: red; }' > style.css echo 'console.log("hello");' > script.js npm install -g pallet-bundler pallet -e index.html -d dist ls dist/
pallet --version
Debug
Known issues
gotchaConfig file must be named pallet.config.js and use CommonJS module.exports.
fix
Use module.exports instead of export default.
affects: >=1.0.0
gotchaAll linked assets in HTML are bundled; external URLs may be inlined or ignored.
fix
Ensure all local references are relative and correct.
affects: >=1.0.0
gotchaOutput directory is created if not exists, but may overwrite existing files without warning.
fix
Backup your dist folder or use a different output dir.
affects: >=1.0.0
breakingEntry point is index.html by default; if missing, the bundler throws an error.
fix
Specify entry with -e flag or ensure index.html exists.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'pallet-bundler'
Package not installed globally.
fix
Install globally: npm install -g pallet-bundler
Error: ENOENT: no such file or directory, open 'index.html'
Entry point missing or wrong path.
fix
Create index.html or specify correct entry with -e.
TypeError: Cannot read property 'split' of undefined
Config file has invalid syntax.
fix
Ensure pallet.config.js exports a valid object.
Upgrade
Version history
1.0.12latest on npm
Audit
Dependencies
commanderrequiredCLI argument parsing
Agent activity
2 hits · last 30 days
node
2
Resources
pallet-bundler — npm install pallet-bundler · libregistry