What are the production and development dependencies in package.json in the vue scaffolding project?

two puzzles:
1 are production dependencies and development dependencies not duplicated? Does that mean local development depends on production + development?
2 won"t executing build type dependencies into packages in development dependencies when the execution environment variable is production? Don"t you see the processing of this piece in webpack?


1: the answer is yes. The popular point is the dependence on the needs of the project to run
2: it is not entirely clear about the actual development of this thing, for example, you downloaded axios in devDependencies , and then main.js introduced axios , then webpack will still type the dependency into the production environment, that is, in the production package

.
Menu