为了根据我写的文档通过指南针实现精灵:
// web/sass/icons.scss
@import "../images/icons/*.jpg"; // for any cases also tried .png
@include all-icons-sprites;
并得到错误:
error sass/icons.scss (Line 2: File to import not found or unreadable: ../images/icons/*.jpg.
我不认为路径是错误的,因为也尝试了完整路径。
结构是这样的:
+ web
- sass
+ icons.scss
+ ...
- images
+ icons
- icon1.jpg
- icon2.jpg
- ...