Stroll Reactjs, Angular2,vuejs community, Daniel Blog, when you know the most likely to see the webpack,webpack this build tool has been widely recognized in the community, And Webpack has become the standard of react.js development, so we need to learn about Webpack.
So I read a lot of blog on the Internet, the leisure time summed up some of the methods used, due to the limited technology may be some lack of hope to advise.
First Webpack is what, using webpack is to solve what kind of programming problem, official online has this problem legend https://webpack.github.io/
I also searched the internet for some ideas and instructions from our predecessors.
Http://deshui.wang/%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91/2016/07/20/fullstack-webpack-introduction
I'll add a little bit of detail to the original blogger. First use NPM to install webpack need to install node
1, go to node. JS official website http://www.nodejs.org/Download the latest version of node. js.
2, run the file just downloaded Node-v0.10.35-x64.msi (32-bit system is node-v0.10.35-x86.msi), like other software tick small box and then decrement "next", in the selection of the installation path, the default path is C:Program Filesnodejs.
3. Right-click on "Start" and select "Command prompt (Administrator mode) to enter NPM install webpack-g (wait for complete install-G is a global installation)
NPM package installation is divided into local installation (locally), global installation
Local Installation:
NPM Install XXX Installs to the Node_module directory where the command line is located.
Global Installation:
NPM Install xxx- g mount to \appdata\roaming\npm\node_modules directory
Nodejs differences between a global installation and a local installation
NPM frequently used commands
How to install Webpack with NPM