Avoid Minification

Advertisement

In the Webpack, We can use the optimization to avoid the minification.

By default when execute command:

webpack

Then, It build the minified version of our source file into the destination file.

So, We can add the optimization in the webpack.config.js file as below:

module.exports = function( env ) {
	...
	return {
		...
		optimization: {
			minimize: false
		},
	}
}

For example check below screenshot in which, I have disable the minification.

Avoid Minification 1
Avoid Minification in Webpack
%d bloggers like this: