Project

fusion

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Fusion bundles and re-bundles your javascript in two modes - quick (dumb concatenation) and optimized (google closure compiler's SIMPLE_OPTIMIZATIONS level
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Fusion

Is a javascript bundling plugin designed to work like sass. Configure it at startup. Re-bundle when you see a new request.

How?

Configuration

  • You can specify multiple bundles in one yaml file.
  • Per bundle, specify
  • The output file name
  • An input file list (whose order is preserved)
  • An input directory

The unique set of files specified this way will be combined into one file.

Modes

The quick mode just does a dumb concatentation. This is very fast. Its recommended that you use this mode when using the 'reloading' feature.

The optimized mode uses Google Closure Compiler's SIMPLE_OPTIMIZATIONS flag -- which means comments and whitespace are stripped, and basic (non-obfuscating) optimizations are performed (such as inlining a function thats only called once).

Example

See the example bundle.yaml file. This example config will create 3 bundles: main.js / checkout.js / bottom.js