Closed bahador closed 5 years ago
Thanks for raising this issue - I've just been ignoring that (it's just a warning, not an error).
I haven't known what, if anything, it would make sense to set the from
to :-x
So, it's probably fine to set it to undefined
just to make the warning go away?
i'm not sure, to be honest. i'd try false
and go with that if it worked.
Same issue for me
Please... :hammer: it.
Has anyone tested an alternative?
Pull requests are welcome
Setting from: undefined
in postcss.config.js
has no effect here.
And at least I've tried codes from this PR for the from
config to work. So I think it's good to merge that one.
Published as 1.1.0 – let me know if there are any issues.
I get the following error when running rollup:
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.
here's the
svelte
config inrollup.config.js
:and here's my
postcss.config.js
:i can fix this if i edit this line: https://github.com/TehShrike/svelte-preprocess-postcss/blob/master/index.js#L20 to be this:
.process(css, { from: undefined })
but this is probably wrong...