ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Output truncated on windows #64

Closed simonsmith closed 10 years ago

simonsmith commented 10 years ago

When running the task on Windows (using a VM) it cuts off the last part of the file. See the output here: http://pastebin.com/FvijUm89 It seems to happen regardless of HTML min options.

It works fine on Mac

My config is:

ngtemplates: {
    app: {
        cwd: 'PIM.Web/',
        src: 'content/app/partials/**/*.html',
        dest: 'PIM.Web/content/app/partials/compiled-templates.js',
        options: {
            module: 'pimApp',
            prefix: '/',
            htmlmin: {
                collapseBooleanAttributes: true,
                collapseWhitespace: true,
                removeAttributeQuotes: true,
                removeComments: true,
                removeEmptyAttributes: true,
                removeRedundantAttributes: true,
                removeScriptTypeAttributes: true,
                removeStyleLinkTypeAttributes: true
            }
        }
    }
},
ericclemmons commented 10 years ago

Does you say it happens even if you remove the htmlmin option entirely, or did you just mean no matter which different settings you try.

I'm curious what result you get on this page:

http://www.mauvecloud.net/jssize/jssmax.html

Otherwise, I have no idea. Javascript has no theoretical limit on strings, so my only guess is that there's something crashing internally with htmlmin or within the VM. I mean, it's a 54k string. That's nothing!

ericclemmons commented 10 years ago

Closing unless I can get something concrete to work with here, like a failing test case or something that I can reproduce with Travis CI :(