Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
479 stars 307 forks source link

Source maps still visible on publish #2278

Open erwinkramer opened 10 months ago

erwinkramer commented 10 months ago

Bug description

I'm trying to disable source maps on production. Whats the best way to do this? I already tried this in webpack.publisher.js (which im using) by adding this line to the publisherConfig: devtool: "hidden-nosources-source-map" but no luck.

In my package.json im calling a script with the following value : webpack --config webpack.publisher.js && node dist/publisher/index.js to create the html pages.

Expected behavior

No source maps on our environment

Is your portal managed or self-hosted?

Self-hosted

Release tag or commit SHA (if using self-hosted version)

2.24.0

API Management service name

no

Environment

Additional context

sources are avaiable through the browser devtools:

image