在项目中使用Webpack编译模块。其中一个(Bootswatch)覆盖了很多Bootstrap来应用一个主题。
就在
_bootswatch.scss
它有:
$web-font-path: "https://fonts.googleapis.com/css?family=Lato:400,700,400italic" !default;
@import url($web-font-path);
此导入始终运行,导致不需要执行的请求(因为字体被覆盖为“Segoe UI”或其他内容,通常已安装且不需要下载。
我怎样才能保证
url($...)
我试着把它设置成
false
,
''
""
试着去寻找它,但是不停地去改变它,而不是去禁用它。也没有找到如何禁用它
in the docs
@import "~bootswatch/dist/darkly/variables";
$web-font-path: '' !important;
这些变化都会导致以下方面的变化:
WAIT Compiling... 2:24:33 PM
WARNING Compiled with 1 warnings 2:24:35 PM
warning in ./assets/css/admin/admin.scss
Module Warning (from ./node_modules/css-loader/dist/cjs.js):
Warning
(1:1) Unable to find uri in '@import url("" !important)' // insert other tried values here