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. webpack
Installation general use npm
, you also need to install node
, and background do not want to nodeJs
write, this is not superfluous, after all, do not nodeJs
, why because the use of webpage
passive install node
it? (Please forgive my lack of knowledge in this respect = =)
2. Not only is vue.js
the use of npm, a lot of good frameworks and tools use, there is also the god please tell me npm
, node
, nodejs
the relationship between them, good chaos ah. .
Question one:
Use webpack
with backstage whether with nodejs
nothing to do, because webpack
performing a packing compression of time is dependent on nodejs
the , not nodejs
can not be used webpack
like 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: node
and nodejs
that is the same thing, just a different name, but npm
only nodejs
one 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. webpack
Installation general use npm
, you also need to install node
, and background do not want to nodeJs
write, this is not superfluous, after all, do not nodeJs
, why because the use of webpage
passive install node
it? (Please forgive my lack of knowledge in this respect = =)
2. Not only is vue.js
the use of npm, a lot of good frameworks and tools use, there is also the god please tell me npm
, node
, nodejs
the relationship between them, good chaos ah. .
Question one:
Use webpack
with backstage whether with nodejs
nothing to do, because webpack
performing a packing compression of time is dependent on nodejs
the , not nodejs
can not be used webpack
like 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: node
and nodejs
that is the same thing, just a different name, but npm
only nodejs
one 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