0.0.4 • Published 6 years ago

gulp-angular-inline v0.0.4

Weekly downloads
9
License
ISC
Repository
-
Last release
6 years ago

Gulp Angular Inline

This is a wrapper around the angular2-inline-template-style lib written by @pablodenadai.

The intention here is to provide an easy way of inlining both your Angular styles and templates when your ready to deploy. Generally this will be used when deploying an Angular component that will be consumed by third party developers. This step is recommended by the Angular team here.

Install

npm i -SED gulp-angular-inline

Basic usage is as follows:

  const inlineAngular = require( 'gulp-angular-inline' )

  gulp.task( 'task_name', function () {
    return inlineAngular( './**/*.component.ts', options )
      .pipe( gulp.dest( YOUR_DEST_FOLDER ) )
  } )
  • options: these are the options that angular2-inline-template-style takes and can be found in the documentation for that project