Skip to content

Unable to strip comments from sourcemaps #1465

@jwilliams-met

Description

@jwilliams-met

I would like to export sourcemaps but strip out all comments.

I have the following in my tsconfig (this is loaded via ts-loader)

    "removeComments": true,
    "sourceMap": true,

My webconfig

 devtool: ''source-map"

However all my comments are there, plain for all to see.

The sourcemaps export fine.

How do I remove the comments from these sourcemaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions