postcss-import-ext-glob
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,6 @@ # Change Log | ||
## 2.0.1 - 2021-01-31 | ||
### Fixed | ||
- Fixed an issue with glob path when running on Windows. | ||
## 2.0.0 - 2021-01-02 | ||
@@ -8,0 +12,0 @@ ### Breaking |
@@ -32,3 +32,5 @@ const valueParser = require('postcss-value-parser'); | ||
if (param.type === 'string') { | ||
globList.push(path.join(dirName, param.value)); | ||
globList.push( | ||
path.join(dirName, param.value).replace(/\\/g, '/') | ||
); | ||
} | ||
@@ -35,0 +37,0 @@ } |
{ | ||
"name": "postcss-import-ext-glob", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A PostCSS plugin to extend postcss-import path resolver to allow glob usage as path", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
16
test.js
@@ -26,18 +26,2 @@ const test = require('ava'); | ||
test('postcss-import test', async (t) => { | ||
const input = ` | ||
@import "/Users/dimitrinicolas/Developer/postcss-import-ext-glob/fixtures/css/style.css"; | ||
`; | ||
const output = ` | ||
div { | ||
margin: auto; | ||
} | ||
`; | ||
await tester.test(input, output, t, { | ||
pluginsAfter: [postcssImport], | ||
}); | ||
}); | ||
test('simple test', async (t) => { | ||
@@ -44,0 +28,0 @@ const input = ` |
10379
208