Run multiple independent projects under a set of webpack framework

may not be very detailed, specifically:

for example, there is a webpack single-page running environment, I have A project, B project, C project, all under this webpack development environment, can be developed.

that is to say, in this single-page environment, I only need to install dependencies on my computer once, and then there are D projects, E projects, and I can run directly by setting up a folder in this single-page environment. Regardless of Project A, Project B. What do they have their own independent dependencies, self-installed in the current project directory on the outermost layer of OK, is a public dependency.

is there any such thing? Can you provide an idea?


you may want to share the node_modules folder
you can use mklink / j node_modules "node_modules address of your first project"
for example, in the project
mklink / j node_modules "D: work dir1node_modules"
do this only if the dependency and version number of the project are the same, for example, the copied project
if you install a new npm project, it is best to install it in the original folder. Otherwise, inexplicable problems may arise

Menu