node, webpack, the link between npm

nodejs js is the back-end operating platform, you can see it as java system corresponding jdk, it is the most basic of the three inside.
npm is nodejs package management tool, you can see it as maven dependency management in that part of the package.
webpack is packaged front-end engineering tool, it can be seen that part of the automation project in maven

 

Question:
1. webpackInstallation general use npm, you also need to install node, and background do not want to nodeJswrite, this is not superfluous, after all, do not nodeJs, why because the use of webpagepassive install nodeit? (Please forgive my lack of knowledge in this respect = =)

2. Not only is vue.jsthe use of npm, a lot of good frameworks and tools use, there is also the god please tell me npm, node, nodejsthe relationship between them, good chaos ah. .

 

Question one:
Use webpackwith backstage whether with nodejsnothing to do, because webpackperforming a packing compression of time is dependent on nodejsthe , not nodejscan not be used webpacklike you want to use lights, first of all have to have a current, and the current needs of the engine to generate electricity, you can not because I do not say directly using current engine it ~ (web engineering -> lamps, webpack-> current, npm-> generator)

Question two:
nodeand nodejsthat is the same thing, just a different name, but npmonly nodejsone module

 

webpack is based nodejs achieved, Node.js is an important pillar of the front-end engineering

After webpack packaged web project, it does not necessarily have to run apache for example can also be run in nodejs environment

Reproduced in: https: //www.cnblogs.com/cowboybusy/p/10419516.html

 

webpack able to package the files .vue extension into the browser can identify the js, and this .vue file installed for the need packer vue-loader; this vue-loader packer There are many resources that can be downloaded from the above npm (npm above package), after npm download files; when webpack packaged file requires node environment to run.

 

 

In short is to use the web pack node must be installed (dependent on it) which includes npm   

nodejs js is the back-end operating platform, you can see it as java system corresponding jdk, it is the most basic of the three inside.
npm is nodejs package management tool, you can see it as maven dependency management in that part of the package.
webpack is packaged front-end engineering tool, it can be seen that part of the automation project in maven

 

Question:
1. webpackInstallation general use npm, you also need to install node, and background do not want to nodeJswrite, this is not superfluous, after all, do not nodeJs, why because the use of webpagepassive install nodeit? (Please forgive my lack of knowledge in this respect = =)

2. Not only is vue.jsthe use of npm, a lot of good frameworks and tools use, there is also the god please tell me npm, node, nodejsthe relationship between them, good chaos ah. .

 

Question one:
Use webpackwith backstage whether with nodejsnothing to do, because webpackperforming a packing compression of time is dependent on nodejsthe , not nodejscan not be used webpacklike you want to use lights, first of all have to have a current, and the current needs of the engine to generate electricity, you can not because I do not say directly using current engine it ~ (web engineering -> lamps, webpack-> current, npm-> generator)

Question two:
nodeand nodejsthat is the same thing, just a different name, but npmonly nodejsone module

 

webpack is based nodejs achieved, Node.js is an important pillar of the front-end engineering

After webpack packaged web project, it does not necessarily have to run apache for example can also be run in nodejs environment

Guess you like

Origin www.cnblogs.com/closefriend/p/12022176.html