Skip to content

An option to use opts.file rather than opts.data #324

Closed
@danreeves

Description

@danreeves

It appears custom imports don't currently play nicely with opts.data, and it doesn't pass the correct values to the importer. It works fine with opts.file however.

It didn't like this option was already there. Any way to do this or any reason it shouldn't be there?

e.g.
With the code:

return gulp.src(sassGlob)
.pipe(sass({
    importer: function (url, prev, done) {
        console.log(url, prev, done)
    }
}))

It should output

// url: modules/* 
// prev: /path/to/your/assets/css/main.scss 
// done: function done(data) {
//        bridge.success(data);
//       }

but it outputs:

// url: modules/* 
// prev: stdin 
// done: function done(data) {
//        bridge.success(data);
//       }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions