问题描述
我试图让 Angular7 与 Autoprefixer 很好地协同工作.我特别希望获得对 IE11 的支持.我已经从浏览器列表文件中的IE 9 - 11"中删除了not".我还添加了
I am trying to get Angular7 working nicely with the Autoprefixer. I'm specifically looking to get support on IE11. I've removed the "not" from "IE 9 - 11" in the browserlist file. I've also added
/* autoprefixer grid: autoplace // 自动前缀网格:开启 */
/* autoprefixer grid: autoplace // autoprefixer grid: on */
到我的 _grid.scss 文件的顶部.问题是网格项仍然没有得到任何前缀.Flexbox 似乎工作正常,但不是 CSS 网格.有没有我遗漏的配置?
To the top of my _grid.scss file. Problem is grid items are still not getting any prefixes. Flexbox seems to work fine but not CSS grid. Is there any configuration I've missed?
推荐答案
我遇到了依赖性问题.跑
I had dependency issues. Ran
npm 审计修复
问题已经解决.
这篇关于Angular 7 - Autoprefixer 不适用于 CSS Grid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!