我在 scss 中导入 @import "./libs/bootstrap-select.css";
给出构建后 @import url(./libs/bootstrap-select.css);
我需要文件中的 css 代码
如果以 scss@import "./libs/bootstrap-select";规范导入,但是
DEPRECATION WARNING on line 1, column 8 of /libsass/test.scss:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.
Tor*_*giu -1
导入对 *.scss 的作用与对 *.css 文件的作用相同 - 只需省略扩展名:
@import "path/to/file";Run Code Online (Sandbox Code Playgroud)
这将导入 file.css
如果这不起作用,请将扩展名从 .css 文件更改为 .scss 并导入它@import "yourfile";
| 归档时间: |
|
| 查看次数: |
4431 次 |
| 最近记录: |