2 Star 0 Fork 0

Ls-piao/渤海大屏

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
lspiao 提交于 2024-09-10 22:12 . update:layout
declare var require: any
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path, { resolve } from 'path'
import stylePxToVw from "./stylePxToVw";
import pxtoviewport from "postcss-px-to-viewport";
const pathResolve = (dir: string): any => {
return resolve(__dirname, '.', dir)
}
export default defineConfig({
plugins: [vue(),stylePxToVw()],
define: {
'process.env': {},
},
base:'./',
server: {
port: 8080,
hmr: true
},
resolve: {
alias: {
'@': pathResolve('./src/')
}
},
css: {
preprocessorOptions: {
javascriptEnabled: true,
less: {
javascriptEnabled: true,
},
},
postcss: {
plugins: [
pxtoviewport({
unitToConvert: "px",
viewportWidth: 1920,
unitPrecision: 5,
propList: ["*"],
viewportUnit: "vw",
fontViewportUnit: "vw",
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: [],
landscape: false,
landscapeUnit: "vw",
landscapeWidth: 1280,
}),
],
},
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Ls-piao/bohai-screen.git
git@gitee.com:Ls-piao/bohai-screen.git
Ls-piao
bohai-screen
渤海大屏
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385