Skip to content

the proof of concept about the new plugins API #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
added processor options
  • Loading branch information
mightyaleksey committed Nov 23, 2015
commit 156df0c85bcc9e179d2dcaa3f1be516f3f04f8a0
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ module.exports = function (browserify, options) {
var cssOutFilename = options.output || options.o;
var jsonOutFilename = options.json || options.jsonOutput;

var processorOptions = {to: options.to};

// the compiled CSS stream needs to be avalible to the transform,
// but re-created on each bundle call.
var compiledCssStream;
Expand All @@ -115,7 +117,7 @@ module.exports = function (browserify, options) {
// collect visited filenames
filenames.push(filename);

var loader = new FileSystemLoader(options);
var loader = new FileSystemLoader(options, processorOptions);
return through(function noop () {}, function end () {
var self = this;

Expand Down