undefinedfix
Sign in

Does Vue cli include webpack by default?

user96880 edited in Sat, 21 Jan 2023

Does Vue cli include webpack by default?

5 Replies
faza
commented on Sat, 21 Jan 2023

Including, look at @ Vue / cli package.json Don't you know what it depends on?

https://github.com/vuejs/vue-...
Scorpoin
commented on Sat, 21 Jan 2023

Look at the document

You can use the following command to see the current configuration

vue inspect
mastercenter
commented on Sat, 21 Jan 2023

I want to see which plug-ins and versions are used in the project. Look package.json That's it.

{
  "name": "colyst-web",   //项目名称
  "version": "2.1.1",     //项目版本
  "private": true,        
  "dependencies": {       //依赖的相关插件
    "antd": "^3.15.0",
    "babel-plugin-import": "^1.11.0",
    "babel-polyfill": "^6.26.0",
    "cross-env": "^5.2.0",
    "customize-cra": "^0.2.12",
    "downloadjs": "^1.4.7",
    "echarts": "^4.1.0",
    "favico.js": "^0.3.10",
    "intl": "^1.2.5",
    "js-cookie": "^2.2.0",
    "lodash.debounce": "^4.0.8",
    "moment": "^2.21.0",
    "promise-prototype-finally": "^1.0.0",
    "react": "^16.2.0",
    "react-addons-update": "^15.6.2",
    "react-app-rewire-less": "^2.1.0",
    "react-app-rewired": "^2.1.1",
    "react-dnd": "^5.0.0",
    "react-dnd-html5-backend": "^5.0.1",
    "react-dom": "^16.2.0",
    "react-intl": "^2.4.0",
    "react-redux": "^5.0.7",
    "react-resizable": "^1.7.5",
    "react-router-dom": "^4.2.2",
    "react-scripts": "2.1.8",
    "redux": "^3.7.2",
    "viewerjs": "^1.1.0",
    "whatwg-fetch": "^2.0.3"
  },
  "scripts": {          //相关命令
    "start": "",
    "devBuild": "",
  },
  "devDependencies": {
    "babel-plugin-dynamic-import-node": "^2.2.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-stage-2": "^6.24.1",
    "filemanager-webpack-plugin": "^2.0.5"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}
JeremyPatrickMartin
commented on Sun, 22 Jan 2023

I use scaffolding projects. It's like Vue cli encapsulates webpack, so it's invisible

Sandhya
commented on Sun, 22 Jan 2023

If you want to change the webpack configuration in Vue cli, click vue.config.js Using webpack chain in