Skip to content

Production build should not reference sourcemapΒ #137

@lonix1

Description

@lonix1

The production build aspnet-validation.min.js references a source map due to this trailing comment:

//# sourceMappingURL=aspnet-validation.min.js.map

That unfortunately spams the devtools console on every page load. Example from my dev machine:

Source map error: request failed with status 404
Resource URL: http://localhost:5000/aspnet-validation.min.js?v=Uz3ITHpf7A137fljWz3TgkiLOAuuH8-EUPTNuZ_GrLw
Source Map URL: aspnet-validation.min.js.map

The production build should not have source map support, because it's unnecessary, it spams the console and generates significantly more traffic (lib is ~21KiB and map is ~83KiB).

(This is probably affecting your users too.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions