Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Fix PostCSS plugin API
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jul 6, 2015
1 parent 15d01d4 commit 019bbea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,8 @@ Assets.prototype.postcss = function (css) {
};

module.exports = postcss.plugin('postcss-assets', function (options) {
return new Assets(options);
var assets = new Assets(options);
return function (css) {
return assets.postcss(css);
};
});

0 comments on commit 019bbea

Please sign in to comment.