carrot / roots-css-pipeline

get your css together
Other
7 stars 9 forks source link

Broken asset links when extending layout from nested folder #7

Closed robertjwhitney closed 9 years ago

robertjwhitney commented 9 years ago

TL;DR The js, and css pipelines default "out" directory is a relative path to the current directory rather than relative to the root url (needs to have a leading /). Took a look, couldn't decide where/how best to do this.

Steps to reproduce

In a new roots project

Using "out" option to specify path relative to domain rather than directory:

extensions: [
    js_pipeline(files: 'assets/js/*.coffee', out: '/js/main.js'),
    css_pipeline(files: 'assets/css/*.styl', out: '/css/master.css')
  ]

Resolving the issue from this project

Prepend a leading / to the default "out" path.

robertjwhitney commented 9 years ago

Oh crap- I see a commit here that you do this on purpose? Ok.

robertjwhitney commented 9 years ago

RTFM I got it now

kylemac commented 9 years ago

:heart:

jescalan commented 9 years ago

:cactus:

robertjwhitney commented 9 years ago

:grin: