Skip to content

Commit

Permalink
Replace \ with / for all paths (for the glob package) (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
andgra authored Jun 20, 2022
1 parent 2162eaa commit e6fb492
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,10 @@ module.exports = (opts = {}) => {
if (!Array.isArray(opts.mixinsDir)) {
opts.mixinsDir = [opts.mixinsDir]
}
loadFrom = opts.mixinsDir.map(dir =>
join(dir, MIXINS_GLOB).replace(/\\/g, '/')
)
loadFrom = opts.mixinsDir.map(dir => join(dir, MIXINS_GLOB))
}
if (opts.mixinsFiles) loadFrom = loadFrom.concat(opts.mixinsFiles)
loadFrom = loadFrom.map(path => path.replace(/\\/g, '/'))

return {
postcssPlugin: 'postcss-mixins',
Expand Down

0 comments on commit e6fb492

Please sign in to comment.