Needle Engine

Changes between version 3.31.4 and 3.31.5
Files changed (1) hide show
  1. plugins/next/next.js +4 -3
plugins/next/next.js CHANGED
@@ -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
- console.log("Apply next webpack config concatentateModules=false, pathinfo=verbose");
46
- config.optimization.concatenateModules = false;
47
- config.output.pathinfo = 'verbose';
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;