Using browserify with npm jQuery and non-npm plugins

后端 未结 3 1662
孤街浪徒
孤街浪徒 2021-02-01 07:09

I am using browserify to bundle front-end code. It\'s been great so far, but I\'ve been having difficulty mixing npm and non npm packages. For example, using the npm version of

3条回答
  •  深忆病人
    2021-02-01 07:56

    I would do as follows:

    1. Use debowerify to include libraries available in bower, in your case will be, jquery-waypoints, jquery-validation

    2. Use the jquery which comes in npm package, which is available here https://github.com/jquery/jquery

    As such, I would also remove browserify-shim for the time being.

提交回复
热议问题