andrewdavey / andrewdavey/cassette

Minify is still happening in spite of pipeline modification

未关闭
#413 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
531
派生
139
PR 合并指标
30 天内没有已合并 PR

描述

I am struggling with an issue for about a day now. We are using the Cassette.Less package to bundle a less file. The problem I'm seeing is that when I bundle this way..

```
public void Configure(BundleCollection configurable)
{
configurable.Add("content/less/site.less", RemovePipeline);
}

void RemovePipeline(StylesheetBundle b)
{
var x = b.Pipeline.IndexOf();
if (b.Pipeline.IndexOf() > 0)
b.Pipeline.RemoveAt(x);

var a = b.Pipeline.IndexOf();
if (b.Pipeline.IndexOf() > 0)
b.Pipeline.RemoveAt(a);
}
```

The it still comes out minified. Seems there is something else that is performing minification on the resources outside of the pipeline for the bundle. When debug=true, this does not happen, and the file is rendered without minification.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。