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