How to use the harp.compile function in harp

To help you get started, we’ve selected a few harp 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 ksoichiro / Android-ObservableScrollView / website / gulpfile.js View on Github external
gulp.task('build', ['copy'], function(cb) {
    // This task is for production, so BASE_URL should be a project name.
    // $BASE_URL is referenced in harp.json, and it will be replaced by harp (envy).
    process.env.BASE_URL = '/' + project.name
    harp.compile(paths.harp.project, paths.harp.output, function(err) {
        if (err) {
            gutil.log('build failed: ' + err);
        }
        gutil.log('Compile done');
        cb();
    });
});
github jondashkyle / photo-on-startup / index.js View on Github external
function compileHarp () {
  harp.compile(__dirname + '/' + options.publicPath, '../www', function (err) {
    if (err) throw err;
    events.emit('harp:compiled')
  })
}

harp

Static Web Server/Generator/Bundler

MIT
Latest version published 6 months ago

Package Health Score

59 / 100
Full package analysis

Popular harp functions