项目作者: tadayosi

项目描述 :
A parcel plugin to concatenate multiple js files
高级语言: JavaScript
项目地址: git://github.com/tadayosi/parcel-plugin-concat.git
创建时间: 2020-05-22T09:02:50Z
项目社区:https://github.com/tadayosi/parcel-plugin-concat

开源协议:MIT License

下载


parcel-plugin-concat

A Parcel plugin to concatenate multiple js files into a single bundle js.

Install

  1. yarn add --dev parcel-plugin-concat

Usage

If you have more than one entry files Parcel can consume them like this:

  1. parcel index.js another.js

or:

  1. 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.

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