Skip to content

Minified files should use C-Style comments on last line #236

Closed
@jpw

Description

@jpw

Right now the minified files look like;

/*! Raven.js 1.1.16 (2cf8531) | github.com/getsentry/raven-js */
!function(a,b){"use strict";function c(a,b)...
//# sourceMappingURL=raven.min.map

I'm downloading these minified files and concatenating them using Grunt with all my other vendor JS files.

As other libs typically begin with C-Style comments the concatenated output looks like;

};/*! Raven.js 1.1.16 (2cf8531) | github.com/getsentry/raven-js */
!function(a,b){"use strict";function c(a,b)...
//# sourceMappingURL=raven.min.map;/**
 * A class to parse color values
 ...

...which throws a "Unexpected token: operator (*). " because the inline commenting comments out the beginning of the following C-Style comment block in the following library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions