Last updated 9 months ago by lxe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lxe/fusion-cli 
SYNC missed versions from official npm registry.


Build status

The CLI interface for Fusion.js

The fusion-cli package is responsible for orchestrating compile-time configuration for server and browser bundles, as well as development, test and production variations. It provides a standardized Babel configuration that includes async/await support as well as stage 3+ Ecmascript features.

The CLI is also responsible for hot module reloading in development mode, and for running the web server.


yarn add fusion-cli


The CLI API can be most easily run through the Yarn or NPX CLI, e.g. yarn fusion build or npx fusion build.

  • fusion build [dir] [--production] [--log-level] Builds your application assets

    This command generates transpiled javascript/source map files (aka assets, artifacts) for browser and server. By default it builds development assets, but can also build test and production assets, given the respective flags.

    Build artifacts are stored in the .fusion directory.

    • --production: Build production assets
    • --log-level: Log level to output to console [default: "info"]
  • fusion dev [dir] [--port] [--no-hmr] [--test] [--log-level] [--forceLegacyBuild] Builds development assets and runs the application in development mode

    Note that this command only builds browser artifacts in memory, and it doesn't save them to the filesystem. This allows hot module reloading to occur faster since there's no performance cost due to I/O access.

    • --port: The port on which the application runs [default: 3000]
    • --no-hmr: Run without hot modules replacement
    • --test: Run tests as well as application
    • --log-level: Log level to output to console [default: "info"]
    • --forceLegacyBuild: Force enable legacy build. By default not compiled in dev.
    • --perserve-names: Disable name mangling during script minification

Webpack stats.json file

Building an app generates a .fusion/stats.json file, which can be used with webpack-bundle-analyzer

Current Tags

  • 2.3.0                                ...           latest (9 months ago)

4 Versions

  • 2.3.0                                ...           9 months ago
  • 2.1.0                                ...           a year ago
  • 2.1.0-lxe                                ...           a year ago
  • 2.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependents (0)

Copyright 2014 - 2016 © taobao.org |