Skip to content

Commit

Permalink
Set from option for stdin to process.cwd() + 'stdin'
Browse files Browse the repository at this point in the history
Should fix #114; will revert if this causes other issues.
  • Loading branch information
RyanZim committed Apr 1, 2017
1 parent 097f37a commit 6081871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -279,7 +279,7 @@ function css (css, file) {
if (file === 'stdin' && output) file = output

// TODO: Unit test this
if (file !== 'stdin') options.from = file
options.from = file === 'stdin' ? path.join(process.cwd(), 'stdin') : file

if (output || dir || argv.replace) {
options.to = output || (argv.replace ? file : path.join(dir, path.basename(file)))
Expand Down

0 comments on commit 6081871

Please sign in to comment.