如题:安装依赖的时候如果我不主动区分生产环境依赖包和开发环境依赖包,依赖信息会默认存在dependencies,那build时候会把dependencies字段里所有的依赖打包吗?如果是,react官网安装typescript时候为什么不加-D如果不是pageage.json中区分dependencies和devDependencies有什么意义?
dependencies
build
react
typescript
-D
pageage.json
devDependencies
昨天刚回答完同样的问题……
传送门:https://ostack.cn/q/1010000024479756/a-1020000024480877
太长不看版:对于三大框架这种需要 Bundle 才能运行的项目来说,放哪其实都一样。
2.1m questions
2.1m answers
60 comments
56.8k users