first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:15:40 +08:00
commit 10ca82f012
157 changed files with 159116 additions and 0 deletions

47
vite.config.ts Normal file
View File

@@ -0,0 +1,47 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import pxtovw from "postcss-px-to-viewport";
const pxtovw_config = pxtovw({
unitToConvert: "px", // 要转化的单位
viewportWidth: 1920, // UI设计稿的宽度
unitPrecision: 6, // 转换后的精度,即小数点位数
propList: ["*"], // 指定转换的css属性的单位*代表全部css属性的单位都进行转换
viewportUnit: "vw", // 指定需要转换成的视窗单位默认vw
fontViewportUnit: "vw", // 指定字体需要转换成的视窗单位默认vw
selectorBlackList: ["ignore-"], // 指定不转换为视窗单位的类名,
minPixelValue: 1, // 默认值1小于或等于1px则不进行转换
mediaQuery: false, // 是否在媒体查询的css代码中也进行转换默认false
replace: true, // 是否转换后直接更换属性值
});
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
build: {
rollupOptions: {
output: {
manualChunks: {
vue: ['vue'],
three: ['three'],
gsap: ['gsap'],
},
},
},
},
server: {
host: '0.0.0.0',
port: 3000,
},
css: {
postcss: {
plugins: [pxtovw_config],
}
}
})