Skip to content

Destination dest parameter fails due to incorrect relative stylesheet path lookup #79

@matmar10

Description

@matmar10

Steps to Reproduce

Create a directory structure such as:

  • css/
    • main.css
  • styleguide/
  • index.js
var path = require('path');
var livingcss = require('livingcss');

// all of these fail:
livingcss('css/buttons.css', 'styleguide');
livingcss(path.join(__dirname, 'css/buttons.css'), 'styleguide');
livingcss(path.join(__dirname, 'css/buttons.css'), path.join(__dirname, 'styleguide'));
livingcss('css/buttons.css', path.join(__dirname, 'styleguide'));

Actual Behavior

Error: ENOENT: no such file or directory, open '../css/buttons.css'

Expected Behavior

  • Styleguide generated in specified directory
  • Stylesheets linked (if flag enabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions