0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

build/postcss.config.js: minor tweaks (#35506)

This commit is contained in:
XhmikosR 2021-12-15 10:52:49 +02:00 committed by GitHub
parent e0960b08e0
commit a22694da13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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