/* global module */

/**
 * Configuration for PostCSS.
 *
 * Properties names correspond to the `postcss-cli` properties
 * accepted by the PostCSS CLI API -- with the addition of
 * plugin names for plugin settings.
 * (@see: https://github.com/postcss/postcss-cli)
 */
module.exports = {
  input: 'src/index.css',
  output: 'build/ticketfly-css.css',

  // ⚠️ Order matters! PostCSS will run plugins in the order listed.
  use: [
    'stylelint',
    'postcss-import',
    'autoprefixer',
    'cssstats',
    'postcss-custom-media',
    'postcss-custom-properties',
    'postcss-calc',
    'postcss-discard-comments',
    'postcss-remove-root',
    'postcss-reporter'
  ],

  stylelint: {
    configFile: './stylelint.config.js',
    configOverrides: {
      ignoreFiles: '**/ticketfly-css-normalize/**'
    },
    plugins: [
      'stylelint'
    ]
  },

  'postcss-reporter': {
    clearAllMessages: true,
    throwError: true
  }
};

/* global module */

/**
 * Configuration for PostCSS.
 *
 * Properties names correspond to the `postcss-cli` properties
 * accepted by the PostCSS CLI API -- with the addition of
 * plugin names for plugin settings.
 * (@see: https://github.com/postcss/postcss-cli)
 */
module.exports = {
  input: 'src/index.css',
  output: 'build/ticketfly-css.css',

  // ⚠️ Order matters! PostCSS will run plugins in the order listed.
  use: [
    'stylelint',
    'postcss-import',
    'autoprefixer',
    'cssstats',
    'postcss-custom-media',
    'postcss-custom-properties',
    'postcss-calc',
    'postcss-discard-comments',
    'postcss-remove-root',
    'postcss-reporter'
  ],

  stylelint: {
    configFile: './stylelint.config.js',
    configOverrides: {
      ignoreFiles: '**/ticketfly-css-normalize/**'
    }
  },

  'postcss-reporter': {
    clearAllMessages: true,
    throwError: true
  }
};

edit postcss.config