andrewdavey / andrewdavey/knapsack

Files not being removed when references are removed

Đang mở
#1 2 bình luận 0 reaction 1 người được giao Được @andrewdavey nhận Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
24
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

In my index.cshtml, I have the following

```
@{
ViewBag.Title = "File Manager";
Html.AddScriptReference("Content/js/app.files.js");
}
```

and at the top of app.files.js, I have the following

```
///
///
///
///
///
```

but then I was moving stuff around and decided to take the last three references out since they are already minified and never change and really used by every page in my app. So now, the top of app.files.js looks like:

```
///
///
```

However, I'm noticing that when I run my app and view source, I see:

```

script>

```

So, as you can see, even though I'm manually referencing the files in my _Layout.cshtml, and even though they are no longer referenced in app.files.js, somehow Knapsack is still adding them in there. It's like its not clearing its cache or something. Or perhaps I'm just doing something wrong.

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.