0.0.1-alpha.1 • Published 4 years ago
@funish/bundle v0.0.1-alpha.1
Funish Bundle Tool
Blazing fast, zero configuration web application bundler based on Parcel.
Usage
Installation
# npm
$ npm install -g @funish/bundle
# Or yarn
$ yarn global add @funish/bundle
Get started
The bundle tool can use any type of file as an entry point, but an HTML or JavaScript file is a good starting point. If you use relative paths to link to the main JavaScript file in the HTML, it will also take care of that for you and replace the reference with the URL of the output file.
<html>
<body>
<script src="./index.js"></script>
</body>
</html>
Development
The bundle tool has a built-in development server that automatically rebuilds your application when you modify your files, and supports hot module replacement for rapid development. Simply point it to your entry file.
# Serve
bundle index.html
# or watch
bundle watch index.html
Build
As in development, to build the final product, simply point it to your entry file.
bundle build index.html
Reference
- Parcel - under the MIT license
License
- Code - MIT © Funish.net
- Documentation - CC-BY-NC-SA-4.0 © Funish.net