alexgorbatchev / hapi-stylus

A basic Stylus plugin for hapi.
MIT License
4 stars 1 forks source link

Home path seems to be not working #1

Open ro-ka opened 10 years ago

ro-ka commented 10 years ago

I used this config for the plugin:

{
  plugin: require('hapi-stylus'),
  options: {
    home: __dirname + '/../assets/stylesheets/',
    route: '/stylesheets/{filename*}'
  }
}

My stylesheets are located in /assets/stylesheets/ and my hapi index file is in /assets/lib/. Loading the main.styl / main.css file works but importing partials needs the full path.

For example consider this main.styl, trying to import files in the same folder:

@import '_partial' // Does not work
@import 'assets/stylesheets/_partial' // Does work

I would expect that the first variant would work.

alexgorbatchev commented 10 years ago

Hey, thanks for reporting this! Did you get a chance to look into the problem?

ro-ka commented 10 years ago

No, just reported. Also switched to a Grunt workflow in the meantime. But I thought this would better be solved!