gulp - What is the <%= syntax in the Angular2-Seed project? -
i see bunch of <% , <%= in angular2-seed project, it? angular2 thing, or gulp thing, or else?
it gulp template plugin. see:
https://www.npmjs.com/package/gulp-template
and in angular2-seed project can see being invoked in:
tools/tasks/seed/build.index.dev.ts
the following extract file:
export = () => { return gulp.src(join(app_src, 'index.html')) .pipe(inject('shims')) .pipe(inject('libs')) .pipe(inject()) .pipe(plugins.template(templatelocals())) <-- here .pipe(gulp.dest(app_dest)); };
Comments
Post a Comment