Simple File Bundler is a command-line utility designed to merge multiple files into a single bundle, primarily focused on concatenating CSS or JavaScript files. It operates via a configuration file (`simple-file-bundle.config.js`) located at the project root, which exports an array of bundling instructions. Each instruction specifies an output endpoint, a list of input files, an optional path prefix, and an optional separator. The package is currently at version 1.0.7, indicating a stable but likely feature-complete state with an infrequent release cadence. Its key differentiator is its minimalist approach, requiring minimal setup for basic file concatenation, contrasting with more complex bundlers that offer advanced features like module resolution, tree-shaking, or minification.
npm install simple-file-bundlerVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation, configuration with `simple-file-bundle.config.js`, and execution of the bundler to concatenate CSS and JS files into specified endpoints.
Ensure `simple-file-bundle.config.js` is directly in the project root directory. You can verify the current working directory before running the command.
Always use `module.exports = [...]` in your `simple-file-bundle.config.js` file, even if your main project is ESM. This file is loaded by Node.js as a CommonJS module by the CLI tool.
Double-check all file paths in your configuration. Use `__dirname` for `prefix` to make paths relative to the config file, or ensure absolute paths are correct.
Verify that all file paths specified in your `simple-file-bundle.config.js` are correct and the files actually exist relative to the `prefix` or the command execution directory.
Ensure `simple-file-bundle.config.js` exists in the project root, exports a valid array, and each object in the array has at least `endpoint` and `files` properties defined.
No dependency data recorded yet.