From: XhmikosR Date: Wed, 15 Dec 2021 08:52:49 +0000 (+0200) Subject: build/postcss.config.js: minor tweaks (#35506) X-Git-Tag: v5.2.0-beta1~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a22694da130e0c4e3e9488769d6b3a120e859f83;p=thirdparty%2Fbootstrap.git build/postcss.config.js: minor tweaks (#35506) --- 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' } } }