andrewdavey / andrewdavey/cassette

Serve same bundle with different conditions

Đang mở
#223 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Feature Request
Ngôn ngữ chính
C#
Star
531
Fork
139
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I've been trying to come up with a simple way to get around the data URI issue in IE 7. I noticed that DocumentCloud/Jammit ignores the MHTML thing altogether and just serves IE 7 the same CSS without the data URI, (from www.documentcloud.org/public/search/):

```

```

Note the wonky opening comment, ``.

Suppose Cassette could do something like:

```
bundles.Add(
"styles/bundles/ui",
b => b.Processor = new StylesheetPipeline()
.Condition("if lte IE 7")
);
bundles.Add(
"styles/bundles/ui",
b => b.Processor = new StylesheetPipeline()
.Condition("(!IE)|(gte IE 8)")
.EmbedImages(p => p.Contains("/embed/"))
);
```

What do you think?

Currently, this throws an error, `A StylesheetBundle with the path "~/styles/bundles/ui" has already been added to the collection.`. Also, there would need to be a way to specify that special comment syntax.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.