text: /* eslint-disable */
  const path = require('path');
  
  module.exports = ({ file, options }) => {
    const production = options.mode === 'production';
    return {
      map: !production && 'inline',
      plugins: [
        require('postcss-import')({
          root: file.dirname,
        }),
        require('postcss-nesting')(),
        require('postcss-base64')({
          extensions: ['.png', '.gif'],
          root: 'src/images',
        }),
        require('postcss-cssnext')({ features: { nesting: false } }),
        require('postcss-reporter')({
          clearReportedMessages: true,
        }),
      ].concat(production && [
        require('cssnano')({
          safe: true,
          autoprefixer: false,
          discardComments: { removeAll: true },
        }),
      ]),
    };
  };
  