]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
build/postcss.config.js: minor tweaks (#35506)
authorXhmikosR <xhmikosr@gmail.com>
Wed, 15 Dec 2021 08:52:49 +0000 (10:52 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 08:52:49 +0000 (10:52 +0200)
build/postcss.config.js

index b179a0e77c4c427d645f59fa6d4afa376cd66a3c..7f8186d10314ad34710e142a30af135da81d2e3e 100644 (file)
@@ -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'
     }
   }
 }