-
Notifications
You must be signed in to change notification settings - Fork 39
Uses source-map for webpack config #797
Uses source-map for webpack config #797
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! One minor tweak, can you easily fix the white space differences in the solution file? I’m worried about it conflicting with #693
I am not sure what you mean @ohine if I view it (without ignore whitespace) I see no problem? Am I looking at it wrong, where do you see whitespace issues ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the whitespace changes to the sln file (I saw it in some views but not others, I think the tools are just trying to be too helpful)
Thanks @bdukes can you explain me how you fixed this. How you push a commit to someone else PR and how you revert a whole file commit ? Just want to learn this. |
When you create a PR, there's a box checked by default, "Allow edits from maintainers" So I was able to pull down your branch, add a commit, and push it back up to your branch. For the whitespace change, I reverted your change to the Does that help? |
That is kinda how I tried to do this in the past, but it never worked for me, not sure why. Maybe one day we can look at this together, see what I am doing wrong... |
This is how I've done it successfully when working with #717
Open Visual Studio, update references, build.
I know @bdukes has a different workflow, which I wasn't able to get to work right (forgot the exact error). I'd love to figure out one of these days what I did wrong because his method seems much quicker/cleaner as it doesn't require cloning an entire fork I believe. |
Hmm, interesting. I think github instructions confused me, your way makes sense, you are actually allowed to push to the submitter branch then. I was trying to push to upstream or something... I will try that next time. Thanks. |
Here are the commands I used: git checkout release/2.0.x
git checkout -b valadas_issue-419
git pull https://github.com/valadas/Dnn.AdminExperience issue-419
gitex
git push https://github.com/valadas/Dnn.AdminExperience valadas_issue-419:issue-419 I did not have a local copy of the
|
Closes #419
Summary
Source maps are js files that help debug minified javascript by mapping the minified version to the original source code that generated them before transpiling. Webpack allows generating those files in multiple ways.
Some modules had the inline-source-map option which includes the source code inside the bundle file and makes it huge for no good reason. For those, this PR will reduce their footprint without loosing the features.
Some other modules had no source maps to begin with, this PR will make the cryptic error message more meaningful and help use pinpoint strange hard to reproduce issues and edge cases more easily. Note that the source map files are only loaded by the browser development tools, they do not affect normal site users in production.