可能是版本问题,成功实现的
{
"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"
}
}
相关文章
- vue+rem自适应pc端屏幕分辨率(rem适配)
- Vue3 + vite PC端自适应
- vue + vite 项目架构笔记---- PC端屏幕自适应方案
- js代码实现jsp页面中div样式自适应pc和手机端
- vue3系列:vue3.0自定义全局弹层V3Layer|vue3.x pc桌面端弹窗组件
- 使用rem配置PC端自适应大屏
- 10天学会phpWeChat——第七天:创建一个自适应PC网站+H5移动端的模块
- vue3系列:vue3.0自定义全局弹层V3Layer|vue3.x pc桌面端弹窗组件
- Vite + Vue3 项目中,使用 vw/vh 适配移动端,并通过 Android Studio 打包
- 使PC端网页宽度自适应手机屏幕大小