Template
Port pages for data forms, score admin, student maintenance, vacation records, menu routing, and workbench. Add team switching, dynamic menu loading, viewport scaling, and bundled local fast-crud packages.
23 lines
646 B
JavaScript
23 lines
646 B
JavaScript
// 参考 F:\vue3\br_video\video_web\postcss.config.cjs
|
|
// 把源码里的 px 按 1920 设计稿换算成 vw,实现整体等比缩放(等价于老平台的 postcss-pxtorem + rem 方案)
|
|
import pxToViewport from "postcss-px-to-viewport-8-plugin"
|
|
|
|
export default {
|
|
plugins: [
|
|
pxToViewport({
|
|
unitToConvert: "px",
|
|
viewportWidth: 1920,
|
|
unitPrecision: 6,
|
|
propList: ["*"],
|
|
viewportUnit: "vw",
|
|
fontViewportUnit: "vw",
|
|
selectorBlackList: ["ignore-vw", "no-vw"],
|
|
minPixelValue: 1,
|
|
mediaQuery: false,
|
|
replace: true,
|
|
exclude: [/node_modules/],
|
|
landscape: false
|
|
})
|
|
]
|
|
}
|