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:
@@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user