首页 > 编程学习 > webpack5构建基于Vue3+ElementPlus项目搭建(开发和生产)

项目基于webpack5+vue3+ElementPlus环境构建
主要配置文件:
package.json 插件使用和版本配置等信息
.eslintrc.js 启用eslint检测代码规范
babel.config.js es语法兼容配置
config
│ ├─ webpack.base.js 开发和生产公共配置文件
│ ├─ webpack.dev.js 开发环境配置
│ └─ webpack.prod.js 生产打包环境配置

package.json

{
  "name": "vue3-elementPlus-project",
  "version": "1.0.0",
  "description": "",
  "main": "./src/main.js",
  "scripts": {
    "start": "npm run dev",
    "dev": "cross-env NODE_ENV=development webpack serve --config ./config/webpack.dev.js",
    "build": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "element-plus": "^2.2.17",
    "vue": "^3.2.40",
    "vue-r
Copyright © 2010-2022 kler.cn 版权所有 |关于我们| 联系方式|豫ICP备15888888号