简体   繁体   English

使用Prepros连接JavaScript文件失败

[英]Concatenating JavaScript files with Prepros fails

I have this little cat.js file: 我有这个小cat.js文件:

var Cat = (function( cat ){

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

    return cat;

} ( Cat || {} ));

//  @prepros-prepend cat.eat.js

The cat.eat.js consists of: cat.eat.js包括:

var Cat = (function( cat ){

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

    return cat;

} ( Cat || {} ));

I use Prepros to minify and concatenate my project files. 我使用Prepros来缩小和连接我的项目文件。

Somehow, Prepros doesn't concatenate the two js files. 不知何故,Prepros不会连接两个js文件。 Am I missing something? 我错过了什么吗?

Please remove the space between @ and slashes . 请删除@slashes之间的空格。

var Cat = (function( cat ){

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

    return cat;

} ( Cat || {} ));

//@prepros-prepend cat.eat.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM