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

Add includePaths options #56

Closed tamascsaba closed 8 years ago

tamascsaba commented 8 years ago

It will be good if you can add includePaths options like node-sass includePaths

First file match win :)

Example:

{
 useRelativePaths: true,
  includePaths: ['node_modules', 'src/styles']
}
styleUrls: [
    'bootstrap/scss/bootstrap.scss',
    'hint.css/src/hint.scss',
    'app.style.scss',
  ],
ludohenin commented 8 years ago

I'm not sure to fully understand. If useRelativePaths is true then it means the file is living next to the component file otherwise it's a fully qualified path.

Or is it that you'd like to have a mix of relative and "absolute" paths ?

ludohenin commented 8 years ago

Btw, you should be able to add this behavior using the CustomFilePath configuration option.

tamascsaba commented 8 years ago

Yes :+1: