Vue3 + vite PC端自适应

时间:2025-03-28 12:29:39
可能是版本问题,成功实现的
{
"name": "minutes",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite --host --open",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.3.5",
"element-plus": "^2.3.3",
"lib-flexible": "^0.3.2",
"postcss-px2rem": "^0.3.0",
"require": "^0.4.4",
"": "^1.0.0",
"sass": "^1.61.0",
"vue": "^3.2.24",
"vue-router": "^4.0.4",
"vue-style-loader": "^4.1.3"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.0.0",
"lib-flexible-computer": "^1.0.2",
"node-sass": "^8.0.0",
"postcss-px-to-viewport": "^1.1.1",
"px2rem-loader": "^0.1.9",
"sass-loader": "^13.2.2",
"sass-resources-loader": "^2.2.5",
"vite": "^4.1.4"
}
}