Skip to main content

Bug Tracker

Side navigation

#13062 closed bug (notabug)

Opened December 15, 2012 06:01PM UTC

Closed December 15, 2012 06:12PM UTC

jQuery 1.8.3 can't be minified with JSmin

Reported by: salvatore@iovene.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

JSmin doesn't seem to like comments between "var" and the variable name, so this:

var

foo

foo,

bar

bar;

becomes this:

varfoo,bar

This is a problem with JSmin I suppose, but it's cheap to fix in jQuery.

Attachments (0)
Change History (2)

Changed December 15, 2012 06:02PM UTC by salvatore@iovene.com comment:1

Sorry, I didn't know how to format code.

This:

var
  // foo
  foo,
  // bar
  bar;

becomes this:

varfoo,bar;

Changed December 15, 2012 06:12PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

Yes, it sounds like a problem with jsmin. Please report it there or use another minifier like Uglify.