Domanda

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?

È stato utile?

Soluzione

Please remove the space between @ and slashes.

var Cat = (function( cat ){

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

    return cat;

} ( Cat || {} ));

//@prepros-prepend cat.eat.js
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top