Skip to content

Commit e6fb492

Browse files
authored
Replace \ with / for all paths (for the glob package) (#147)
1 parent 2162eaa commit e6fb492

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,10 @@ module.exports = (opts = {}) => {
172172
if (!Array.isArray(opts.mixinsDir)) {
173173
opts.mixinsDir = [opts.mixinsDir]
174174
}
175-
loadFrom = opts.mixinsDir.map(dir =>
176-
join(dir, MIXINS_GLOB).replace(/\\/g, '/')
177-
)
175+
loadFrom = opts.mixinsDir.map(dir => join(dir, MIXINS_GLOB))
178176
}
179177
if (opts.mixinsFiles) loadFrom = loadFrom.concat(opts.mixinsFiles)
178+
loadFrom = loadFrom.map(path => path.replace(/\\/g, '/'))
180179

181180
return {
182181
postcssPlugin: 'postcss-mixins',

0 commit comments

Comments
 (0)