Shim a jQuery plugin with browserify

前端 未结 3 1086
不思量自难忘°
不思量自难忘° 2020-12-30 09:12

Hi I\'m using the grunt browserify task to setup my code, I have shimmed in jQuery and I\'m now trying to include jquery.tablesorter.

Can jquery plugins be used with

3条回答
  •  滥情空心
    2020-12-30 09:48

    Its much easier to require global.JQuery and then require your module, it require no changes to package.json:

    global.jQuery = require('jquery');
    require('tipso');
    

提交回复
热议问题