api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Source maps still visible on publish

Open erwinkramer opened this issue 1 year ago • 0 comments

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

  • Operating system: Windows
  • Browser: Chrome / Edge
  • Version: latest

Additional context

sources are avaiable through the browser devtools:

image

erwinkramer avatar Aug 22 '23 09:08 erwinkramer