yarn && yarn start
yarn build:dev
yarn build:test
yarn build
require('postcss-px-to-viewport')({
unitToConvert: 'px',
viewportWidth: 320,
unitPrecision: 5,
propList: ['*'],
viewportUnit: 'vw',
fontViewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: undefined,
include: undefined,
landscape: false,
landscapeUnit: 'vw',
landscapeWidth: 568
})
参考:https://github.com/evrone/postcss-px-to-viewport/blob/master/README_CN.md
参考:https://create-react-app.bootcss.com/docs/getting-started