在我的webpack配置中,如果我想使用video#bgvid {
position: absolute; right: 0; bottom: 0; left:0; top: 0; z-index: -100;
background: url(../images/intro.jpg) center no-repeat;
width: 100%; height: 100%; margin: auto;
}
video { display: block; display: block;
margin: 0 auto;}
video#bgvid { transition: 1s opacity; }
.stopfade { opacity: .5; }
/* mobile */
@media screen and (max-device-width: 800px) {
body {
background: url(../images/intro.jpg) #000 no-repeat center center fixed;
}
#bgvid {
display: none;
}
}
然后使用css-loader
我如何让file-loader
执行它的魔法,然后仍然返回{{1}想要它可以将其保存为css-loader
示例配置
file-loader
可以吗?