How to use the brunch.build function in brunch

To help you get started, we’ve selected a few brunch 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 aframevr-userland / aframe-cli / lib / build.js View on Github external
return new Promise((resolve, reject) => {
    filePath = filePath || process.cwd();
    options = options || {};
    options.config = options.config || getBrunchConfigPath(filePath, options);
    logger.log(`Building project "${filePath}" …`);

    try {
      brunch.build(options, resolve);
    } catch (err) {
      logger.error(`Could not build project "${filePath}" …`);
      throw err;
    }
  }).then(() => {
    let builtPath = null;

brunch

Fast front-end web app build tool with simple declarative config, seamless incremental compilation for rapid development, an opinionated pipeline and workflow, and core support for source maps

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular brunch functions