1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 05:03:16 +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 = {
inline: false,
annotation: true,
sourcesContent: true
}
module.exports = context => {
return { return {
map: ctx.file.dirname.includes('examples') ? map: context.file.dirname.includes('examples') ? false : mapConfig,
false :
{
inline: false,
annotation: true,
sourcesContent: true
},
plugins: { plugins: {
autoprefixer: { autoprefixer: {
cascade: false cascade: false
}, },
rtlcss: ctx.env === 'RTL' ? {} : false rtlcss: context.env === 'RTL'
} }
} }
} }