我是Grunt和分發過程的新手。我有一個Yeoman生成的應用程序,使用主幹生成器require.js和jQuery Mobile。它適用於'grunt serve',但當我運行構建和服務:dist時,單擊jQuery Mobile/Backbone href鏈接不會響應。我正在使用骨幹路由。grunt serve:使用骨幹jQuery Mobile的dist錯誤RequireJS
如果我手動輸入href網址,它可以工作。如果我在href上執行一個Inspect元素並在調試窗口中單擊URL,它也可以工作。
某些東西一定不能包含在dist中,但是我不知道丟失什麼以及爲什麼。我在控制檯中沒有任何錯誤。
這裏是我的Gruntfile:http://codeshare.io/pHbSc
我認爲答案是,我不應該部署我的應用require.js - HTTPS ://github.com/yeoman/grunt-usemin/issues/112。也是一個好帖子http://webdesignporto.com/3-steps-to-fully-automatized-javascript-environment-with-yeoman-and-require-js-for-lazy-people/和討論https:// github。 COM /自耕農/咕嚕-usemin /問題/ 192。 – SeattleStephens