Npm 使用grunt browserify忽略依赖项

Npm 使用grunt browserify忽略依赖项,npm,gruntjs,jquery-cycle2,grunt-browserify,Npm,Gruntjs,Jquery Cycle2,Grunt Browserify,我正在将Malsups Cycle2库“要求”到一个依赖于jQuery的项目中,但是,我想将jQuery排除在捆绑之外,因为我将单独包含它 当前my package.json具有: ... "dependencies": { "browserify-shim": "^3.8.12", "font-awesome": "^4.6.3" }, "browserify-shim": { "jquery" : "global:jquery" }.... 我的

我正在将Malsups Cycle2库“要求”到一个依赖于jQuery的项目中,但是,我想将jQuery排除在捆绑之外,因为我将单独包含它

当前my package.json具有:

  ...
  "dependencies": {
    "browserify-shim": "^3.8.12",
    "font-awesome": "^4.6.3"
  },
  "browserify-shim": {
    "jquery" : "global:jquery"
  }....
我的GrunFile.js有以下内容:

  ...
  browserify: {
        dist: {
            files: {
                "dest.js" : "source.js"
            },
            options: {
                transform: ["browserify-shim"]
            }
        },
    }...
在我的JS文件中,我有:

var cycle2 = require("jquery.cycle2");
但是jQuery仍然被捆绑在一起