SparkPost / heml

HEML is an open source markup language for building responsive email.
https://heml.io
MIT License
4.33k stars 157 forks source link

Add `from: undefined` to hide warnings from PostCSS #86

Open pateketrueke opened 5 years ago

pateketrueke commented 5 years ago

I got this:

Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.

This can be safely omitted with:

- .process(contents, { parser: safeParser })
+ .process(contents, { parser: safeParser, from: undefined })

Source: https://github.com/SparkPost/heml/blob/master/packages/heml-styles/src/index.js#L90

lucasgranberg commented 5 years ago

Also mentioned here: https://github.com/SparkPost/heml/issues/62. I can confirm the error goes away with this. Ill create a PR.