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

Add SourceMaps to minified JS #1385

Merged
merged 1 commit into from May 12, 2021
Merged

Conversation

maennchen
Copy link
Contributor

@maennchen maennchen commented Mar 25, 2021

As discussed in https://groups.google.com/g/phoenix-core/c/Dk2AbXVnzeg

When running npm run build, this will:

  • Add a comment to priv/static/phoenix_live_view.js pointing to the sourcemap
  • Add a new file priv/static/phoenix_live_view.js.map

I have verified that when using webpack in your application, it will incorporate this sourcemap and therefore create better error stacktraces.

@maennchen
Copy link
Contributor Author

Is there anything I should change or is this PR ok as is?

@maennchen
Copy link
Contributor Author

Rebased to current master

@Gazler Gazler merged commit 582aff4 into phoenixframework:master May 12, 2021
@Gazler
Copy link
Member

Gazler commented May 12, 2021

Thanks <3

@maennchen maennchen deleted the source_maps branch May 13, 2021 05:54
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

Successfully merging this pull request may close these issues.

None yet

2 participants