Skip to content
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

Error msg no writecb in Transform class when tried to add sourcemaps support. #184

Closed
hzlzh opened this issue Mar 8, 2016 · 1 comment
Closed

Comments

@hzlzh
Copy link

hzlzh commented Mar 8, 2016

Error msg no writecb in Transform class when tried to add sourcemaps support.
How to solve this?

if (obj.stylesheet.rules.length > 0) {
            parseRules(obj.stylesheet.rules);
            cssContent = css.stringify(obj, { sourcemap: true });
        }

        if (file.sourceMap) {
            applySourceMap(file, cssContent.map);
        }

        this.push(new File({
            base: file.base,
            path: file.path,
            contents: new Buffer(cssContent.code)
        }));

        cb();

issues here weixin/gulp-lazyimagecss#1

@phated
Copy link
Contributor

phated commented Mar 13, 2017

This is a problem with your usage of streams, not anything to do with gulp-sourcemaps.

@phated phated closed this as completed Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants