Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matmar10 opened this issue Apr 5, 2020 · 1 comment

Comments

@matmar10
Copy link

matmar10 commented Apr 5, 2020

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)
@matmar10
Copy link
Author

matmar10 commented Apr 5, 2020

Reproduced by PR #80

matmar10 added a commit to matmar10/livingcss that referenced this issue Apr 5, 2020
matmar10 added a commit to matmar10/livingcss that referenced this issue Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant