How to use the @roots/bud.bud.sync function in @roots/bud

To help you get started, we’ve selected a few @roots/bud 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 roots / sage / bud.config.js View on Github external
'@images':  bud.src('images'),
  '@scripts': bud.src('scripts'),
  '@styles':  bud.src('styles'),
});

/**
 * Autoload common modules.
 */
bud.auto({
  jquery: ['$', 'window.jQuery'],
});

/**
 * Configure live reload.
 */
bud.sync({
  enabled: !bud.inProduction,
  options: {
    proxy: 'http://sage.test',
  },
});

/**
 * Compile application assets.
 */
bud
  .bundle('app', [
    bud.src('scripts/app.js'),
    bud.src('styles/app.scss'),
  ])
  .bundle('editor', [
    bud.src('scripts/editor.js'),