Verified Commit fee6f23f authored by Théodore Biadala's avatar Théodore Biadala
Browse files

task: #3568444 Simplify PostCSS config

By: longwave
By: smustgrave
parent 34b4c6eb
Loading
Loading
Loading
Loading
Loading
+21 −38
Original line number Diff line number Diff line
@@ -19,23 +19,7 @@ module.exports = (filePath, callback) => {
          removeUnwantedComments,
        ],
      }),
      postcssPresetEnv({
        stage: 1,
        preserve: false,
        autoprefixer: {
          cascade: false,
          grid: 'no-autoplace',
        },
        features: {
          'blank-pseudo-class': false,
          'focus-visible-pseudo-class': false,
          'focus-within-pseudo-class': false,
          'has-pseudo-class': false,
          'image-set-function': false,
          'prefers-color-scheme-query': false,
          'content-alt-text': false,
        }
      }),
      postcssPresetEnv(),
      postcssPixelsToRem({
        propList: [
          '*',
@@ -57,7 +41,6 @@ module.exports = (filePath, callback) => {
        // added to use the `postcssUrl` plugin, but aren't compatible with
        // `postcssPixelsToRem`.
        exclude: (filePath) => filePath.match(/core\/modules.*\.icons\..*\.pcss\.css$/)

      }),
      postcssHeader({
        header: `/*\n * DO NOT EDIT THIS FILE.\n * See the following change record for more information,\n * https://www.drupal.org/node/3084859\n * @preserve\n */\n`,