Gnanz
Gnanz

Reputation: 1873

Ember production build error 'WARN: Output exceeds 32000 characters'

I'm developing an Ember application,

in that application-

Building application for production environment gives following warning during build process.

On Executing ember build --environment=production command

I'm getting following warning:

WARN: Output exceeds 32000 characters

we need to suppress or eliminate this warning.

Upvotes: 2

Views: 4005

Answers (3)

Joan Karadimov
Joan Karadimov

Reputation: 111

Kumkanillam's answer didn't work for me (Ember CLI 2.12.2 with UglifyJS 2.8.22). It was on the right track, though. After some digging I came up with this:

var app = new EmberApp(defaults, {
  minifyJS: {
    enabled: true,
    options: {
      output: { max_line_len: 50000 },
    },
  },
};

Upvotes: 3

Ember Freak
Ember Freak

Reputation: 12872

You need to mention it in options object for minifyjs configurations,

var app = new EmberApp(defaults, {
    minifyJS: {
      enabled: true, //by default its enabled for production
      options: {
        "max-line-len": 50000, //you can mention custom value
      }
    }    
  });

Upvotes: 3

georoot
georoot

Reputation: 3617

The warning is being generated because of uglify. If you note its Beautifier options the max-line-len defaults to 32000. Now that is just a warning so no issues there, but if you want to remove that you can set the value of option in ember build.

Upvotes: 2

Related Questions