使用spmbuild来压缩js文件。js使用了seajs,backbone。但是压缩之后的文件,总是缺少对require文件的依赖。如下面的代码就缺少对jquery、underscore的依赖。define("app/test/1.0.0/main-debug",["backbone-debug","./view-debug","./common-debug","./bootstrap-debug","./bootstrap-datetimepicker-debug","./collection-debug","./model-debug","./item-view-debug","./detail-view-debug","./DropDownLoading-debug"],function(require,exports,module){varBackbone=require("backbone-debug");var_=require("underscore-debug");var$=require("$-debug");varapp=require("./view-debug");newapp();});package.json的代码如下:{"family":"app","name":"test","version":"1.0.0","description":"test","homepage":"","author":"","maintainers":[""],"repository":{"type":"git","url":"http://192.168.200.8/group-team/meet.git"},"bugs":{"url":""},"dependencies":{"jquery":"gallery/jquery/1.8.2/jquery"},"keywords":[],"licenses":"MIT","spm":{"alias":{},"output":["main.js"],"devAlias":{},"engines":{}}}哪位朋友遇到过这种问题,麻烦帮忙解答一下。
潇潇雨雨
宝慕林4294392
相关分类