postcss.config.js 660 B

1234567891011121314151617181920
  1. module.exports = ctx => ({
  2. map: !ctx.env || ctx.env !== 'production' ? { inline: false } : false,
  3. plugins: [
  4. require('postcss-custom-properties')({
  5. preserve: false,
  6. // Breaks style lint and unnecessary if preserve set to false.
  7. // exportTo: 'dist-css/variables.css',
  8. importFrom: [
  9. './themes/claro/css/src/base/variables.css'
  10. ]
  11. }),
  12. require("postcss-calc"),
  13. require('autoprefixer')({
  14. cascade: false
  15. }),
  16. require('postcss-header')({
  17. header: `DO NOT EDIT THIS FILE.\nSee the following change record for more information,\nhttps://www.drupal.org/node/2815083\n@preserve`,
  18. }),
  19. ]
  20. });