straker / livingcss

Parse comments in your CSS to generate a living style guide using Markdown, Handlebars, Polymer, and Prism syntax highlighter.
MIT License
241 stars 21 forks source link

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

Open matmar10 opened 4 years ago

matmar10 commented 4 years ago

Steps to Reproduce

Create a directory structure such as:

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

matmar10 commented 4 years ago

Reproduced by PR #80