|
|
|
@ -2,22 +2,16 @@ module.exports = {
|
|
|
|
|
plugins: {
|
|
|
|
|
// https://github.com/csstools/postcss-preset-env
|
|
|
|
|
'postcss-preset-env': {},
|
|
|
|
|
// https://github.com/evrone/postcss-px-to-viewport/blob/master/README_CN.md
|
|
|
|
|
'postcss-px-to-viewport': {
|
|
|
|
|
unitToConvert: 'px',
|
|
|
|
|
viewportWidth: 750,
|
|
|
|
|
// https://github.com/wswmsword/postcss-mobile-forever
|
|
|
|
|
'postcss-mobile-forever': {
|
|
|
|
|
viewportWidth: file => /vant[\\/]/.test(file) ? 375 : 750,
|
|
|
|
|
maxDisplayWidth: 560,
|
|
|
|
|
unitPrecision: 3,
|
|
|
|
|
propList: ['*'],
|
|
|
|
|
viewportUnit: 'vw',
|
|
|
|
|
fontViewportUnit: 'vw',
|
|
|
|
|
selectorBlackList: ['.ignore', 'van'],
|
|
|
|
|
minPixelValue: 1,
|
|
|
|
|
mediaQuery: false,
|
|
|
|
|
replace: true,
|
|
|
|
|
exclude: [],
|
|
|
|
|
landscape: false,
|
|
|
|
|
landscapeUnit: 'vw',
|
|
|
|
|
landscapeWidth: 568
|
|
|
|
|
selectorBlackList: ['.ignore'],
|
|
|
|
|
rootContainingBlockSelectorList: ['van-popup--bottom'],
|
|
|
|
|
disableLandscape: true,
|
|
|
|
|
disableDesktop: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|