gulp-vulcanize

Concatenate a set of Web Components into one file

gulp-vulcanize

Concatenate a set of Web Components into one file with Vulcanize

Issues with the output should be reported on the Vulcanize issue tracker.

$ npm install --save-dev gulp-vulcanize
var gulp = require('gulp');
var vulcanize = require('gulp-vulcanize');
 
gulp.task('default', function () {
    var DEST_DIR = 'dist';
 
    return gulp.src('src/index.html')
        .pipe(vulcanize({
            dest: DEST_DIR,
            strip: true
        }))
        .pipe(gulp.dest(DEST_DIR));
});

These options plus the below.

Required
Type: string

The destination directory.

Unfortunately needed to get correct relative paths in the output.

MIT © Sindre Sorhus