# WebOptimizer

ASP.NET Core middleware that bundles and minifies CSS and JavaScript files at runtime and keeps the output in memory.


Source: https://findsoftware.frbit.cloud/weboptimizer/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/ligershark/WebOptimizer
- docs: https://ligershark.github.io/WebOptimizer/

### Identity

- status: active
- maintainer: LigerShark
- maintainerType: unknown
- parent: unknown
- firstRelease: 2017
- hqCountry: unknown

### Kind

- category: build-tool
- hosting: not applicable
- language: csharp
- runtime: dotnet
- runtimeMin: dotnet 8.0
- basedOn: aspnet-core

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: dotnet add package

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 3
- latestReleaseDate: 2025-09-03

### Adoption

- githubStargazers: 839
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 60
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/ligershark/WebOptimizer (read 2026-10-28)
- urls: https://ligershark.github.io/WebOptimizer/ (read 2026-10-28)
- category: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/README.md (read 2026-10-28)
- basedOn: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/README.md (read 2026-10-28)
- maintainer: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/src/WebOptimizer.Core/WebOptimizer.Core.csproj (read 2026-10-28)
- language: https://api.github.com/repos/ligershark/WebOptimizer (read 2026-10-28)
- runtime: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/src/WebOptimizer.Core/WebOptimizer.Core.csproj (read 2026-10-28)
- runtime: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/README.md (read 2026-10-28)
- runtimeMin: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/src/WebOptimizer.Core/WebOptimizer.Core.csproj (read 2026-10-28)
- license: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/src/WebOptimizer.Core/WebOptimizer.Core.csproj (read 2026-10-28)
- license: https://api.github.com/repos/ligershark/WebOptimizer (read 2026-10-28)
- currentMajor: https://api.nuget.org/v3/registration5-semver1/ligershark.weboptimizer.core/index.json (read 2026-10-28)
- latestReleaseDate: https://api.nuget.org/v3/registration5-semver1/ligershark.weboptimizer.core/index.json (read 2026-10-28)
- firstRelease: https://api.nuget.org/v3/registration5-semver1/ligershark.weboptimizer.core/index.json (read 2026-10-28)
- installMethod: https://raw.githubusercontent.com/ligershark/WebOptimizer/master/README.md (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/ligershark/WebOptimizer (read 2026-10-28)
- contributors: https://api.github.com/repos/ligershark/WebOptimizer/contributors (read 2026-10-28)

## Notes

WebOptimizer is middleware for ASP.NET Core that bundles and minifies CSS and JavaScript files while the application runs. It is registered through `services.AddWebOptimizer` and `app.UseWebOptimizer`. The pipeline is set up when the application starts, and each output is generated on the first browser request for it.

Bundles and minification rules are defined in code and can use glob patterns. The output is kept in memory and not written to disk. Tag helpers add a version string to the `script` and `link` tags that refer to registered files, and an `inline` attribute copies a file's content into the page.

## Worth knowing

The library runs inside the ASP.NET Core application it is added to, so the application process produces the bundles. The README describes memory and disk caches as settings, and the disk cache is meant to speed up application restarts.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
