ludohenin / gulp-inline-ng2-template

Gulp plugin to inline HTML and CSS into Angular 2 component decorators
MIT License
126 stars 26 forks source link

not working with relative template files (using module.id) #54

Closed Velavok closed 8 years ago

Velavok commented 8 years ago

Hello! I have a component with extracted tempate and styles. I use moduleId property because i don't want to write full path to files. Running gulp task i recieve an error about not founding template file in root directory.

var module: any;

@Component({ moduleId: module.id, selector: 'promo', templateUrl: 'promo.component.html', styleUrls: ['promo.component.css'] })

ludohenin commented 8 years ago

Is useRelativePaths option turned on ? https://github.com/ludohenin/gulp-inline-ng2-template#options

Velavok commented 8 years ago

My bad. Thanks. Great tool!