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

Add from: undefined to hide warnings from PostCSS #86

Open
pateketrueke opened this issue Jan 17, 2019 · 1 comment
Open

Add from: undefined to hide warnings from PostCSS #86

pateketrueke opened this issue Jan 17, 2019 · 1 comment

Comments

@pateketrueke
Copy link

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
Copy link

Also mentioned here: #62. I can confirm the error goes away with this. Ill create a PR.

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