4👍
The minimization is done by Webpack. You can change the Webpack config in your nuxt.config.js
file under the extend
option of the build
property. To disable minimization, you need to set config.optimization.minimize
to false
.
For example, in your nuxt.config.js
file:
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.optimization.minimize = false;
}
},
You probably wouldn’t want to do this in production though. Minimization is a standard practice to help reduce the size of your JavaScript files.
Source:stackexchange.com