How to use fusion-cli - 1 common examples

To help you get started, we’ve selected a few fusion-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fusionjs / fusion-cli / test / e2e / noop-sw / fixture / src / main.js View on Github external
export default async function() {
  const sw = swTemplate({foo: 'bar'});
  const app = new App('element', el => el);
  app.middleware((ctx, next) => {
    if (ctx.url === '/sw.js') {
      ctx.body = sw;
    }
    return next();
  });
  return app;
}

fusion-cli

CLI

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular fusion-cli functions

Similar packages