andrewdavey / andrewdavey/cassette
Serve same bundle with different conditions
- 主要语言
- C#
- 星标
- 531
- 派生
- 139
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。