npm构建会把devDependencies的包也构建
"dependencies" : { "lodash.pick" : "^4.4.0" }, "devDependencies" : { "eslint" : "^5.5.0" , "eslint-config-cantonjs" : "^2.0.0" , "eslint-config-standard" : "^12.0.0" , "eslint-plugin-import" : "^2.14.0" , "eslint-plugin-node" : "^7.0.1" , "eslint-plugin-promise" : "^4.0.0" , "eslint-plugin-standard" : "^4.0.0" , "prettier-eslint-cli" : "^4.7.1" } |
package.json中dependencies和devDependencies如上,使用开发者工具的时候会把devDependencies也进行构建,devDependencies不应该被构建