Refactor project to use Vite: Remove Vue CLI configuration files and update package.json to integrate Vite for development and build processes. Adjust HTML structure for improved asset loading and streamline dependencies in package-lock.json.

This commit is contained in:
Torsten Schulz (local)
2026-04-08 09:03:33 +02:00
parent 99ec18c8f7
commit 597c8ceffe
56 changed files with 2282 additions and 13363 deletions

View File

@@ -3,10 +3,12 @@
"version": "1.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"dev": "vite",
"build": "vite build && npm run copy-dist",
"preview": "vite preview",
"copy-dist": "cp -r dist/* public/",
"lint": "vue-cli-service lint"
"lint": "eslint src --ext .js,.vue",
"lint:all": "eslint . --ext .js,.vue"
},
"dependencies": {
"@iconoir/vue": "^7.7.0",
@@ -51,32 +53,28 @@
"vuex": "^4.0.2"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli": "~5.0.0",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"crypto-browserify": "^3.12.0",
"@vitejs/plugin-vue": "^6.0.5",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.23.0",
"nodemon": "^3.1.3",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"stream-browserify": "^3.0.0",
"webpack": "^5.92.0"
"vue-eslint-parser": "^9.4.3",
"vite": "^8.0.7"
},
"eslintConfig": {
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser"
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {}
},