Next.js: Create a build without minify

Created on 4 Jun 2019  路  3Comments  路  Source: vercel/next.js

Question about Next.js

I wanted to know if it is possible to create a build without the code being modified or minified?

thanks

Most helpful comment

I had to use this:

config.optimization.minimizer = []

All 3 comments

You could disable minification through the webpack config. config.optimization.minify = false from the top of my mind.

Please follow the issue template in the future.

I had to use this:

config.optimization.minimizer = []

Adding this code of line in next.config.js to custom webpack config would help:
config.optimization.minimize = false;

Reference: https://webpack.js.org/configuration/optimization/#optimizationminimize

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arunoda picture arunoda  路  103Comments

poyiding picture poyiding  路  73Comments

nvartolomei picture nvartolomei  路  78Comments

nickredmark picture nickredmark  路  60Comments

acanimal picture acanimal  路  74Comments