Tuesday, 26 March 2019

What method does webpack use to show the sources in a 'webpack://' folder in dev tools?

If I use webpack in dev mode, when I open chrome dev tools, in the 'sources' tab, I can see a 'webpack://' folder with all my source code.

enter image description here

I would like to know how I could do something similar with my own code (without webpack).

Let's say that I want to program my own build system. This build system takes some source code then transpiles it. How can I show the original source code (including js, html, and css files) in a special folder (for example 'mysource://')?



from What method does webpack use to show the sources in a 'webpack://' folder in dev tools?

No comments:

Post a Comment