andrewdavey / andrewdavey/knapsack

Files not being removed when references are removed

Abierto
#1 2 comentarios 0 reacciones 1 asignado Reclamado por @andrewdavey Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
24
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.