stencil-community / stencil-postcss

Autoprefixer plugin for Stencil
https://www.npmjs.com/package/@stencil-community/postcss
Other
30 stars 24 forks source link

Warnings cause zero code output #24

Open johnjenkins opened 4 years ago

johnjenkins commented 4 years ago

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); }); }

splitinfinities commented 3 years ago

Can you help my out by creating a reproduction repo with the latest versions of @stencil/core and @stencil/postcss? I want to look into this.