Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-12-15 11:52:49 +0300
committerGitHub <noreply@github.com>2021-12-15 11:52:49 +0300
commita22694da130e0c4e3e9488769d6b3a120e859f83 (patch)
tree3a626d7e2460ecf7e5eafc37c0380dbb76f8b241 /build
parente0960b08e030f8c4c0c838c1dd0c392209d51f92 (diff)
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 b179a0e77c..7f8186d103 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'
}
}
}