summaryrefslogtreecommitdiffstats
path: root/build/postcss.config.mjs
blob: 7717cfc3f1f6fb767cd5ab67ca4f0470c1e151cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const mapConfig = {
  inline: false,
  annotation: true,
  sourcesContent: true
}

export default context => {
  return {
    map: context.file.dirname.includes('examples') ? false : mapConfig,
    plugins: {
      autoprefixer: {
        cascade: false
      },
      rtlcss: context.env === 'RTL'
    }
  }
}