Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source maps still visible on publish #2278

Open
erwinkramer opened this issue Aug 22, 2023 · 0 comments
Open

Source maps still visible on publish #2278

erwinkramer opened this issue Aug 22, 2023 · 0 comments

Comments

@erwinkramer
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant