Difficulty getting browserify-shim working with grunt-browserify (> 2.0.2) as transform
问题 In version 2.0.2 of grunt-browserify , browserify-shim was removed from the module itself and converted to be used as a transform , rather than a straightforward option on a grunt-browserify task. The old version of using the shim with grunt-browserify would look as such: 'libs-dev': { src: [path.join('<%= config.dirs.browserLibs %>', 'angular', 'angular.js')], dest: path.join('<%= config.dirs.dest.dev %>', 'js', 'libs.js'), options: { shim: { angular: { path: path.join('<%= config.dirs