postcss.config.cjs 629 B

1234567891011121314151617181920212223
  1. module.exports = {
  2. plugins: {
  3. autoprefixer: {},
  4. ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
  5. // 'postcss-px-to-viewport-8-plugin': {
  6. // unitToConvert: 'px',
  7. // viewportWidth: 1680,
  8. // unitPrecision: 5,
  9. // propList: ['*'],
  10. // viewportUnit: 'vw',
  11. // fontViewportUnit: 'vw',
  12. // selectorBlackList: ['el-*'],
  13. // minPixelValue: 1,
  14. // mediaQuery: false,
  15. // replace: true,
  16. // exclude: undefined,
  17. // include: undefined,
  18. // landscape: false,
  19. // landscapeUnit: 'vw',
  20. // landscapeWidth: undefined,
  21. // },
  22. },
  23. }