Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sourcemap conusmer leaves empty comments in the file #134

Open
Lexicality opened this issue Jul 16, 2015 · 0 comments
Open

The sourcemap conusmer leaves empty comments in the file #134

Lexicality opened this issue Jul 16, 2015 · 0 comments

Comments

@Lexicality
Copy link

concatting pre-processed files work, but the comments that used to hold the sourcemap line are not removed.

        concat:
            two:
                src: [
                    'a.min.js'
                    'b.min.js'
                ]
                dest: 'stubs.js'
            options:
                sourceMap: true
                sourceMapStyle: 'embed'
        uglify:
            one:
                src: [
                    'a.js'
                    'b.js'
                ]
                dest: '.'
                ext: '.min.js'
                expand: true
            options:
                sourceMap: true
                sourceMapIncludeSources: true
                sourceMapRoot: ''

results in

var Hogan={};!function(a,b){function c(a)// . . .
//
!function(a){function b(a){"}"===a.n.subs// . . .
//
//# sourceMappingURL=stubs.js.map

for the sake of having it somewhere I added this to the demonstratror from #131, https://github.com/Lexicality/grunt-concat-sourcemap-issue
Just run grunt stubs instead of grunt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant