sindresorhus / gulp-vulcanize

Concatenate a set of Web Components into one file
MIT License
100 stars 25 forks source link

Concat the Components #7

Closed codebryo closed 9 years ago

codebryo commented 9 years ago

Did I get it wrong ? Correct me if I misunderstood the Vulcanize process. I have this script:

gulp.task('vulcanize', function () {
  return gulp.src('./src/components/**/*.html')
    .pipe(vulcanize(
      {
        inline: true,
        strip: true,
        dest: 'app'
      }))
});

And i thought I could manage to really combine 2 webcomponents into 1 file. But All I get are again 2 files with everything they import in two seperate files.

Am I doing it wrong ? Btw, thank you for providing this plugin.

sindresorhus commented 9 years ago

No, you can't concat the components as they're different scopes and doing so merges the scopes which will definitely cause unintended conflicts. Vulcanize is for concatting everything else into the HTML, like CSS, JS, etc.