Including JQuery Mobile in a Node JS project with Browserify

后端 未结 4 605
面向向阳花
面向向阳花 2021-01-12 14:59

I\'m writing a Node JS application where I need both jQuery UI and jQuery Mobile. I\'m using Browserify to pack the modules in a single js file.

I have the following

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-12 15:28

    I've got the same problem.

    right now i'm using browerify for all except jquery and jquery-mobile and i add script tags for jquery and jquery-mobile to the header, and script tag of the bundle at the bottom of the body (so, require("../jquery") and require("../jquery-mobile") are no more necessary). Bad solution, but it works

    
    
    
      
      
      
      
      
      
      
      
    
    
    
      

提交回复
热议问题