postcss.config.js 440 B

12345678910111213141516171819
  1. const autoprefixer = require('autoprefixer');
  2. const px2rem = require('postcss-pxtorem');
  3. module.exports = {
  4. plugins: {
  5. "postcss-import": {},
  6. "tailwindcss/nesting": {},
  7. tailwindcss: {},
  8. ...(process.env.NODE_ENV === "production" ? {
  9. cssnano: {}
  10. } : {}),
  11. 'postcss-pxtorem': px2rem({
  12. rootValue: 10,
  13. exclude: /node_modules/i,
  14. propList: ['*']
  15. }),
  16. "autoprefixer": autoprefixer({})
  17. }
  18. };