[go: up one dir, main page]

Skip to content

🔥 🎉 Vue2.6 + Webpack4 + Babel7 + Vue-Router3 + Vuex3 + Sass + Less + Wxl-UI + Axios 手动配置的Vue2项目开发环境,采用各兼容版本中最高版本

License

Notifications You must be signed in to change notification settings

wxlvip/vue2-webpack4

Repository files navigation

Vue2.x + Webpack4

技术栈 Vue2.x + Webpack4 + Babel7 + vue-router3 + vuex3 + ESlint

设置镜像

npm install -g cnpm --registry=https://registry.npm.taobao.org

由于webpack4只兼容之前版本的一些插件,最新版本的不一定能用,这里就找到了各插件的边界。只是安装的时候需要指定版本。

"vue": "^2.6.14" ↓
"css-loader": "3.6.0" ↓
"file-loader": "^6.2.0",
"html-webpack-plugin": "4.5.2" ↓
"sass": "^1.45.1",
"sass-loader": "10.2.0" ↓
"style-loader": "2.0.0" ↓
"url-loader": "2.3.0" ↓
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14",
"webpack": "^4.46.0" ↓
"webpack-cli": "^4.9.1" ↓
"webpack-dev-server": "^4.6.0"

已配置ESlint

素材

├── build // webpack的基本配置、开发环境配置、生产环境配置
├── config // 路径、端口以及反向代理配置
├── dist // webpack打包后的静态资源
├── node_modules // npm安装的依赖包
├── src // 前端主文件
│   ├── assets // 静态资源
│   │   ├── font
│   │   ├── img
│   │   └── scss
│   ├── components // 单个组件
│   │   ├── xxx.vue // 单文件组件
│   ├── router // 路由配置
│   ├── store // 全局变量
│   ├── App.vue // App组件
│   ├── main.js 主入口文件
├── static // 静态文件
├── .babelrc  // babel的配置项
├── .editorconfig  // 编辑器的配置项
├── .gitignore  // 会忽略语法检查的目录
├── index.html // 入口页面
├── package.json // 项目的描述和依赖 

About

🔥 🎉 Vue2.6 + Webpack4 + Babel7 + Vue-Router3 + Vuex3 + Sass + Less + Wxl-UI + Axios 手动配置的Vue2项目开发环境,采用各兼容版本中最高版本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published