Skip to content Skip to sidebar Skip to footer

How To Disable Bundling In Webpack For Development?

In my web app I was using RequireJS to asynchronously load my javascript files on demand. This worked well for dev - when debugging my app I could see which script is dependent on

Solution 1:

Enable Devtools in webpack.config.js to control and generate source maps (Source Maps enhance debugging process).

webpack.config.js

  devtool: "#inline-source-map",

Chrome Debugger View

enter image description here


Solution 2:

Nope, that's not possible. But have you tried the devtool-option? It maps back your original files in your devtools so you should see no difference whether the modules were in different files or just all in one.


Post a Comment for "How To Disable Bundling In Webpack For Development?"