Please consult the great gods, 1 There is webpack in the project, so what is the role of global installation of webpack? 2. In addition: for vue-cli3, webpack is integrated in the scaffold. How to check the version of webpack integrated in the scaffold? 3. Can it be modified to another version of webpack?
Technical Xiaobai, the description may be inaccurate. Please forgive me
Please guide the maze~,
- Like any other globally installed NPM package, webpack has nothing special. However, it is generally not recommended unless it is a scaffold tool.
- First, you can see the source code of Vue cli, and the dependencies are in
package.jsonLi; You can also view the project after installation
node_modulesFind webpack in the directory and look at it
package.json, with version information.
- No. Vue cli relies on a specific version of webpack.
Read more here: Source link