Skip to content

Commit

Permalink
Dependencies are already imported
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Lehurt committed Feb 25, 2014
1 parent 36e11fe commit 910612d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/stylusPlugin.js
Expand Up @@ -34,15 +34,6 @@ var stylusPlugin = module.exports = function stylusPlugin(builder) {
paths: paths.concat(stylusPlugin.paths)
};

Object.keys(pkg.config.dependencies).forEach(function (name) {
var flatname = name.replace('/', '-')
pkg.globalLookupPaths.forEach(function (gpath) {
var dir = path.join(gpath, flatname)
if (!fs.existsSync(dir)) return
options.paths.push(path.join(pkg.globalLookupPaths[0], flatname));
})
});

var renderer = stylus(contents, options);

if(stylusPlugin.includeCSS) renderer.set('include css', true);
Expand Down

0 comments on commit 910612d

Please sign in to comment.