You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
592 B

4 years ago
  1. const url = require("postcss-url");
  2. const imports = require("postcss-import");
  3. const nested = require("postcss-nested");
  4. const postCSSPresetEnv = require("postcss-preset-env");
  5. const cssnano = require("cssnano");
  6. const color = require("postcss-color-mod-function");
  7. const mixins = require("postcss-mixins");
  8. module.exports = () => ({
  9. plugins: [
  10. url,
  11. imports,
  12. mixins,
  13. nested,
  14. postCSSPresetEnv({
  15. stage: 1,
  16. preserve: true,
  17. features: {
  18. "custom-properties": true,
  19. },
  20. }),
  21. cssnano({
  22. preset: "default",
  23. }),
  24. color,
  25. ],
  26. });