Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tadayosi/parcel-plugin-concat
A parcel plugin to concatenate multiple js files
https://github.com/tadayosi/parcel-plugin-concat
parcel parcel-bundler parcel-plugin parceljs
Last synced: about 1 month ago
JSON representation
A parcel plugin to concatenate multiple js files
- Host: GitHub
- URL: https://github.com/tadayosi/parcel-plugin-concat
- Owner: tadayosi
- License: mit
- Created: 2020-05-22T09:02:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-03T00:26:35.000Z (over 1 year ago)
- Last Synced: 2024-10-17T03:57:47.426Z (3 months ago)
- Topics: parcel, parcel-bundler, parcel-plugin, parceljs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/parcel-plugin-concat
- Size: 203 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parcel-plugin-concat
A [Parcel](https://parceljs.org/) plugin to concatenate multiple js files into a single bundle js.
## Install
```sh
yarn add --dev parcel-plugin-concat
```## Usage
If you have more than one entry files Parcel can consume them like this:
```sh
parcel index.js another.js
```or:
```sh
parcel src/**/*.js
```However, the output files are not merged but still separated as individual files under `dist/` unless [you manually create a single entry file that requires all the individual assets](https://github.com/parcel-bundler/parcel/issues/2037).
This plugin lets you simply concatenate all the multiple entries before processing so that you can get a single output file. The name of output file adheres to the Parcel command options `-o` and `--out-file`, but otherwise it's by default `bundle.js`.
## License
[MIT](LICENSE)