1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 12:51:52 +02: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

View File

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