Skip to content

Template compilation error #7

@jdoose

Description

@jdoose

This grunt plugin always outputs the source of the compiled function, at least with grunt version 1.0.1.

generated csv file looks like this:

function (obj) {
obj || (obj = {});
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {

_.each(obj.files, function (files, i) {;
__p +=
((__t = (files.src)) == null ? '' : __t);
if(_.size(obj.files)!==i+1){;
__p += ',';
} });


}
return __p
}

Reason/cause is that in preload_assets.js, line 306 instead of
grunt.file.write(file.dest, compiled);
must be
grunt.file.write(file.dest, compiled(outputData));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions