Vue-cli中有没有默认包含webpack呢?
包含啊,看 @vue/cli 的 package.json 不就知道它依赖什么了?
package.json
https://github.com/vuejs/vue-...
看文档
可以用下面的指令, 看到当前的配置
vue inspect
想看看项目里用了哪些插件,什么版本。看 package.json就可以了。
{ "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" ] }
我用的是脚手架搭建的项目。好像是vue-cli封装了webpack所以看不见
如果你想在 vue cli 中更改webpack配置, 在 vue.config.js 中使用 webpack chain
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(5)
包含啊,看 @vue/cli 的
package.json
不就知道它依赖什么了?看文档
可以用下面的指令, 看到当前的配置
想看看项目里用了哪些插件,什么版本。看
package.json
就可以了。我用的是脚手架搭建的项目。好像是vue-cli封装了webpack所以看不见
如果你想在 vue cli 中更改webpack配置, 在 vue.config.js 中使用 webpack chain