@@ -42,9 +42,10 @@
|
|
42
42
|
function nextWebPack(config, { buildId, dev, isServer, defaultLoaders, webpack }) {
|
43
43
|
|
44
44
|
// workaround: fix type finding in production builds
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
if (config.optimization.minimize) {
|
46
|
+
console.log("WARN: 😳 disabling minimization for custom scripts. If you don't use custom scripts in your webproject you can enable minimize in the webpack callback like so: needleNext({webpack: (config) => { config.optimization.minimize = true; return config; }})\n")
|
47
|
+
config.optimization.minimize = false;
|
48
|
+
}
|
48
49
|
|
49
50
|
const meta = getMeta();
|
50
51
|
let useRapier = true;
|