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

Added debugging support with webpack source-maps fixes (fossasia#3622) #3623

Closed
wants to merge 1 commit into from

Conversation

ashutoshc8101
Copy link
Contributor

@ashutoshc8101 ashutoshc8101 commented Dec 23, 2020

Fixes #3622

Changes:

Added debugging support for susi.ai in development environment.

What I did?

  • I added devtool : source-map to webpack configuration using command line arguments.
  • Adding source-maps to bundle can increase webpack building time.
  • To avoid this, I have added a new script debug in package.json to give developer an option to run webpack-dev-server with or without source-maps.

Demo Link: https://pr-3623-fossasia-susi-web-chat.surge.sh

Screenshots of the change:

Debugging in vscode with debugger for chrome extension
Screenshot from 2020-12-23 17-36-30
Debugging with chrome
Screenshot from 2020-12-23 17-40-29

@ashutoshc8101
Copy link
Contributor Author

@akshatnitd @Dilshaad21 Please review.

@ashutoshc8101
Copy link
Contributor Author

@akshatnitd @Dilshaad21 Please review.

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.

Debugging is not supported in susi.ai development environment
1 participant