aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-12-15 10:52:49 +0200
committerGitHub <[email protected]>2021-12-15 10:52:49 +0200
commita22694da130e0c4e3e9488769d6b3a120e859f83 (patch)
tree3a626d7e2460ecf7e5eafc37c0380dbb76f8b241 /build
parente0960b08e030f8c4c0c838c1dd0c392209d51f92 (diff)
downloadbootstrap-a22694da130e0c4e3e9488769d6b3a120e859f83.tar.xz
bootstrap-a22694da130e0c4e3e9488769d6b3a120e859f83.zip
build/postcss.config.js: minor tweaks (#35506)
Diffstat (limited to 'build')
-rw-r--r--build/postcss.config.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/build/postcss.config.js b/build/postcss.config.js
index b179a0e77..7f8186d10 100644
--- a/build/postcss.config.js
+++ b/build/postcss.config.js
@@ -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'
}
}
}