Skip to content

Warnings cause zero code output #24

@johnjenkins

Description

@johnjenkins

Hello there,
The following lines of code in your plugin mean any warnings generated, results in no css being output. I don't think this behaviour is intended?

if (warnings.length > 0) { // emit diagnostics for each warning /* BLA */ resolve(results); } else { results.code = postCssResults.css.toString(); /* BLA */ context.fs.writeFile(results.id, results.code, { inMemoryOnly: true }).then(() => { resolve(results); }); }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions