时间:2021-07-01 10:21:17 帮助过:6人阅读
"dependencies": {
"backbone": "^1.1.2",
"jquery": "^2.1.0",
"mustache": "^0.8.1"
},
"devDependencies": {
"browserify": "~3.32.1",
"grunt": "~0.4.4",
"grunt-browserify": "~1.3.2",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-watch": "^0.6.1",
"brfs": "^1.0.1"
}
这里的browserify和grunt-browserify有什么区别?为什么要装两次?
"dependencies": {
"backbone": "^1.1.2",
"jquery": "^2.1.0",
"mustache": "^0.8.1"
},
"devDependencies": {
"browserify": "~3.32.1",
"grunt": "~0.4.4",
"grunt-browserify": "~1.3.2",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-watch": "^0.6.1",
"brfs": "^1.0.1"
}
这里的browserify和grunt-browserify有什么区别?为什么要装两次?
grunt-browserify是grunt的browserify插件,browserify是本体。
你可以理解成后者是核心,前者是把两个工具连接起来的桥梁。