Skip to content

Commit

Permalink
build/postcss.config.js: minor tweaks (twbs#35506)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Dec 15, 2021
1 parent e0960b0 commit a22694d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
'use strict'

module.exports = ctx => {
const mapConfig = {
inline: false,
annotation: true,
sourcesContent: true
}

module.exports = context => {
return {
map: ctx.file.dirname.includes('examples') ?
false :
{
inline: false,
annotation: true,
sourcesContent: true
},
map: context.file.dirname.includes('examples') ? false : mapConfig,
plugins: {
autoprefixer: {
cascade: false
},
rtlcss: ctx.env === 'RTL' ? {} : false
rtlcss: context.env === 'RTL'
}
}
}

0 comments on commit a22694d

Please sign in to comment.