【发布时间】:2020-11-16 12:32:05
【问题描述】:
我在 YouTube 上观看了这个 SCSS 速成课程,程序员输入了以下内容:
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
#bg {
clip-path: polygon(0 0, 100% 0, 100% 71%, 51% 100%, 0 100%);
background-color: map-get($colors, color-blue);
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
}
他在教程中的 CSS 输出是这样的:
body #bg {
-webkit-clip-path: polygon(0 0, 100% 0, 100% 71%, 51% 100%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 71%, 51% 100%, 0 100%);
...
}
教程中的人正在使用 Visual Studio Code。但在我的情况下,供应商前缀没有出现,因为我正在使用 WebStorm 并使用 File Watchers 来编译我的 SCSS 代码。我该怎么做才能让 File Watchers 编译我的 SCSS 代码并自动添加 供应商前缀?
【问题讨论】:
标签: sass webstorm jetbrains-ide vendor-prefix