I'm trying to find solution how integrate polyfill/fallback for CSS Variables to project which is using newest version of Angular (7.0.1) with Angular Material (7.0.2). Problem is that ng eject
is disabled at this moment, so, I can't edit configuration for Autoprefixer which is using PostCSS for which already exists plugins making fallback for older browsers.
What I found:
- JS Library for watching on inline styles,
<styles>
or<link>
HTML tag but for using this I must enablewatch
option of this plugin what means, watching for any changes in DOM (I don't like this solution)
- plugin for PostCSS (used in Angular build as Autoprefixer). I think, best possible solution but currently I'm not to able how to edit build/webpack config.
What I can do:
- sure, I can create own
@mixin
in.scss
for handling property, value as arguments and then return fallback + value with CSS Variables but I'm not sure if there are not possible future problems with that, so, I will be more happier with already exists solution (e.g. CSSNext).
Have you, please, some idea how to reach this goal please? Thank you.
Regards,
striky..