Skip to content

Commit

Permalink
fix: Can't scan only files in a subfolder #58
Browse files Browse the repository at this point in the history
  • Loading branch information
voorjaar committed Feb 18, 2021
1 parent 58f2086 commit 7cc895e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if (args['--init']) {
args['--output'] = template.css;
}

const localFiles = walk('.', true).filter((i) => i.type === 'file');
const localFiles = walk('.', true).filter((i) => i.type === 'file').map(i=> ({ type: i.type, path: i.path.replace(/\\/g, '/')}) );

const matchFiles: string[] = [];
for (const pt of args._) {
Expand Down

0 comments on commit 7cc895e

Please sign in to comment.