livingcss icon indicating copy to clipboard operation
livingcss copied to clipboard

Destination `dest` parameter fails due to incorrect relative stylesheet path lookup

Open matmar10 opened this issue 4 years ago • 1 comments

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 avatar Apr 05 '20 06:04 matmar10

Reproduced by PR #80

matmar10 avatar Apr 05 '20 06:04 matmar10