{"action":"closed","issue":{"url":"https://api.github.com/repos/fex-team/fis/issues/593","labels_url":"https://api.github.com/repos/fex-team/fis/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/fis/issues/593/comments","events_url":"https://api.github.com/repos/fex-team/fis/issues/593/events","html_url":"https://github.com/fex-team/fis/issues/593","id":93979294,"number":593,"title":"requirejs和FIS如何结合使用","user":{"login":"woshiwenzhijie","id":6478844,"avatar_url":"https://avatars.githubusercontent.com/u/6478844?v=3","gravatar_id":"","url":"https://api.github.com/users/woshiwenzhijie","html_url":"https://github.com/woshiwenzhijie","followers_url":"https://api.github.com/users/woshiwenzhijie/followers","following_url":"https://api.github.com/users/woshiwenzhijie/following{/other_user}","gists_url":"https://api.github.com/users/woshiwenzhijie/gists{/gist_id}","starred_url":"https://api.github.com/users/woshiwenzhijie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woshiwenzhijie/subscriptions","organizations_url":"https://api.github.com/users/woshiwenzhijie/orgs","repos_url":"https://api.github.com/users/woshiwenzhijie/repos","events_url":"https://api.github.com/users/woshiwenzhijie/events{/privacy}","received_events_url":"https://api.github.com/users/woshiwenzhijie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-09T07:33:25Z","updated_at":"2015-07-09T12:26:44Z","closed_at":"2015-07-09T12:26:44Z","body":"目前项目中是用requirejs进行模块加载管理，用FIS进行压缩打包和MD5戳，目录结构如下：\r\n![Uploading image.png…]()\r\n--js\r\n   index.js\r\n--lib\r\n   jquery.js\r\n   require.js\r\n\r\n我在index.html页面中：\r\nrequire(['index'],function(index){\r\n    index.init();\r\n});\r\n如果我用FIS将jquery.js和require.js进行打包压缩，并且把index.js加上对应的md5，这时候require(['index'])，这个引用的index.js并不是加上MD5戳的那个js，这个问题怎么解决？\r\n如果我在index.js里头还引用了util.js，如果把util.js和index.js进行打包，会有问题吗？\r\n最近一直被这个问题困扰着，麻烦指点一下，麻烦了，十分感激！\r\n\r\nPS：之前使用的是seajs和FIS，但是seajs一直要对一些插件进行CMD化，有点麻烦，而且同样也有打包的问题，所以最近打算转require试试\r\nPPS：seajs这个MD5戳的问题我之前问过了，已经解决了，不过打包问题还是存在\r\n\r\n\r\n@nwind \r\n@asoiso \r\n@fouber \r\n@walterShen "}}