Skip to content

Commit ded14e9

Browse files
Fix windows glob path
1 parent 9a13113 commit ded14e9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
This project adheres to
44
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## 2.0.1 - 2021-01-31
7+
### Fixed
8+
- Fixed an issue with glob path when running on Windows.
9+
610
## 2.0.0 - 2021-01-02
711
### Breaking
812
- Upgrade to PostCSS v8.

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ module.exports = (opts = {}) => {
2929

3030
for (const param of params) {
3131
if (param.type === 'string') {
32-
globList.push(path.join(dirName, param.value));
32+
globList.push(
33+
path.join(dirName, param.value).replace(/\\/g, '/')
34+
);
3335
}
3436
}
3537

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-import-ext-glob",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A PostCSS plugin to extend postcss-import path resolver to allow glob usage as path",
55
"license": "MIT",
66
"main": "index.js",

0 commit comments

Comments
 (0)