Skip to content

--no-source-map-url option #1036

@pako-pl

Description

@pako-pl

Sometimes it would be useful to prevent UglifyJS2 from adding the following tag at the bottom of a minified file with a source map:

//# sourceMappingURL=http://host/js/source.map

It's always a few bytes less in the final output. In our case, we would prefer to conditionally add a X-SourceMap: HTTP header (for example, when a developer is logged in) - of course we would have to handle this on our side.

Perhaps you could add a --no-source-map-url option to UglifyJS2?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions