Reputation: 8705
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?
Upvotes: 1
Views: 3586
Reputation: 101
Please remove the space between @
and slashes
.
var Cat = (function( cat ){
cat.speak = function(){ return 'meew'; };
return cat;
} ( Cat || {} ));
//@prepros-prepend cat.eat.js
Upvotes: 4