François Richard
François Richard

Reputation: 7045

how to properly debug webpack application?

webpack is building a unique bundle so when I try debug my application I can't see from which file the is from.

With library it's easy to have a 100k lines application, what's your solution to address this issue ? thanks a lot

Upvotes: 0

Views: 67

Answers (1)

Everettss
Everettss

Reputation: 16039

If you don't have enabled source maps you can use one of the easiest to config (this is the most popular solution) cheap-module-eval-source-map. In webpack.config.js add this:

module.exports = {
    // ...
    devtool: 'cheap-module-eval-source-map',
    // ...
};

Upvotes: 1

Related Questions