stylus-loader
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -98,3 +98,7 @@ var path = require('path'); | ||
} | ||
return utils.find(path, options.paths, options.filename); | ||
var found = utils.find(path, options.paths, options.filename) | ||
if (found) { | ||
return normalizePaths(found); | ||
} | ||
}, | ||
@@ -109,5 +113,6 @@ // Stylus's normal resolver for node_modules packages. Cannot locate paths | ||
} | ||
var found = utils.lookupIndex(path, options.paths, options.filename); | ||
if (found) { | ||
return {path: found, index: true}; | ||
return {path: normalizePaths(found), index: true}; | ||
} | ||
@@ -266,1 +271,8 @@ }, | ||
} | ||
function normalizePaths(paths) { | ||
for(var i in paths) { | ||
paths[i] = path.normalize(paths[i]); | ||
} | ||
return paths; | ||
} |
{ | ||
"name": "stylus-loader", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Stylus loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -71,2 +71,15 @@ # stylus-loader | ||
#### Using nib with stylus | ||
The easiest way of enabling `nib` is to import it in the stylus options: | ||
```js | ||
stylus: { | ||
use: [require('nib')()], | ||
import: ['~nib/lib/nib/index.styl'] | ||
} | ||
``` | ||
where `~` resolves to `node_modules/` | ||
## Install | ||
@@ -88,2 +101,3 @@ | ||
## Release History | ||
* Please see https://github.com/shama/stylus-loader/releases | ||
* 1.3.0 - resolve use() calls (@mzgoddard), manual imports through path cache (@mzgoddard) | ||
@@ -90,0 +104,0 @@ * 1.2.0 - files in package.json (@SimenB), test running with testem (@mzgoddard), and some performance changes (@mzgoddard) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
670
116
29243
7