https://github.com/twbs/bootstrap
Raw File
Tip revision: 087199c31a62d3775744eab9cb002a1b4deb0056 authored by Julien Déramond on 14 July 2022, 16:27:33 UTC
Use postcss-drop-empty-css-vars to remove empty CSS variables
Tip revision: 087199c
postcss.config.js
'use strict'

const mapConfig = {
  inline: false,
  annotation: true,
  sourcesContent: true
}

module.exports = context => {
  return {
    map: context.file.dirname.includes('examples') ? false : mapConfig,
    plugins: {
      "postcss-drop-empty-css-vars": {},
      autoprefixer: {
        cascade: false
      },
      rtlcss: context.env === 'RTL'
    }
  }
}
back to top