Skip to content

Commit

Permalink
fix: remove back-slashes in input's glob expression (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Salim Absi authored Mar 4, 2023
1 parent 50ef457 commit 3ebea57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function(options: Partial<Options> = {}): Plugin {
if (compileOptions.input.includes('*')) {
input = compileOptions.input
} else if (!compileOptions.input.match(/\.mjml/)) {
input = path.join(compileOptions.input, '**/*.mjml')
input = path.join(compileOptions.input, '**/*.mjml').replace(/\\/g, '/')
}

const files = await fg(input)
Expand Down

0 comments on commit 3ebea57

Please sign in to comment.