I have this little cat.js file:

var Cat = (function( cat ){

    cat.speak = function(){ return 'meew'; };

    return cat;

} ( Cat || {} ));

//  @prepros-prepend cat.eat.js

The cat.eat.js consists of:

var Cat = (function( cat ){

    cat.eat = function(){ return 'om nom nom'; };

    return cat;

} ( Cat || {} ));

I use Prepros to minify and concatenate my project files.

Somehow, Prepros doesn't concatenate the two js files. Am I missing something?

有帮助吗?

解决方案

Please remove the space between @ and slashes.

var Cat = (function( cat ){

    cat.speak = function(){ return 'meew'; };

    return cat;

} ( Cat || {} ));

//@prepros-prepend cat.eat.js
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top