klei / grunt-injector

Inject references to files into other files (think scripts and stylesheets into an html file)
MIT License
106 stars 38 forks source link

Bower dependency injection ignores paths #19

Closed Brantner closed 5 years ago

Brantner commented 9 years ago

By using injection through 'bower.json' the result html will obtain invalid paths to dependencies as injector doesn't cover a case when html is not located in 'bower_components' parent directory

BenMGilman commented 9 years ago

+1

My index file is in src/index.html, and I can't get my bower dependencies to be injected with '../bower_components/...'

ptitgraig commented 8 years ago

@Brantner @BenMGilman Have you tried with cwd to actually change working directory?

files: {
    cwd: 'client/',
    src: [
    'app/app.js'
    ]
}