postcss.config.js 445 B

12345678910111213141516171819
  1. module.exports = {
  2. plugins: {
  3. 'postcss-px-to-viewport': {
  4. // options
  5. unitToConvert: 'px',
  6. viewportWidth: 1920,
  7. viewportHeight: 1080,
  8. unitPrecision: 3,
  9. propList: ['*'],
  10. viewportUnit: 'vw',
  11. fontViewportUnit: 'vw',
  12. selectorBlackList: ['.no-pxconvert2vw'],
  13. minPixelValue: 1,
  14. mediaQuery: false,
  15. replace: true,
  16. exclude: /(\/|\\)(node_modules)(\/|\\)/,
  17. },
  18. },
  19. };