5 Star 9 Fork 8

zijun / simple-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
postcss.config.js 1013 Bytes
一键复制 编辑 原始数据 按行查看 历史
devin 提交于 2021-01-07 20:37 . feat(*): 新增路由
/*
* @Overview : .post-css-rc
* @Author : Zi Jun
* @Email : zijun2030@163.com
* @Date : 2020-12-24 16:48:51
* @LastEditTime : 2021-01-07 10:41:45
* @LastEditors : Zi Jun
* @FilePath : \simple-vue\postcss.config.js
* @Mark : Do not edit
*/
const path = require('path');
module.exports = ({ file }) => {
// vant-ui是基于375px,一般项目设计稿是基于750px
const designWidth = file.dirname.includes(path.join('node_modules', 'vant')) ? 375 : 750;
return {
plugins: {
autoprefixer: {},
'postcss-px-to-viewport': {
unitToConvert: 'px',
viewportWidth: designWidth,
unitPrecision: 3,
propList: ['*'],
viewportUnit: 'vw',
fontViewportUnit: 'vw',
selectorBlackList: ['ignore-'],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: [],
landscape: false,
landscapeUnit: 'vw',
landscapeWidth: 568,
},
},
};
};
TypeScript
1
https://gitee.com/zijun2030/simple-vue.git
git@gitee.com:zijun2030/simple-vue.git
zijun2030
simple-vue
simple-vue
master

搜索帮助