postcss.config.js 743 B

123456789101112131415
  1. module.exports = {
  2. plugins: {
  3. 'autoprefixer': {},
  4. "postcss-px-to-viewport": {
  5. viewportWidth: 750, // (Number) The width of the viewport.
  6. viewportHeight: 1334, // (Number) The height of the viewport.
  7. unitPrecision: 3, // (Number) The decimal numbers to allow the REM units to grow to.
  8. viewportUnit: 'vw', // (String) Expected units.
  9. selectorBlackList: ['.ignore', '.hairlines'], // (Array) The selectors to ignore and leave as px.
  10. minPixelValue: 1, // (Number) Set the minimum pixel value to replace.
  11. mediaQuery: false // (Boolean) Allow px to be converted in media queries.
  12. },
  13. }
  14. }