From a22694da130e0c4e3e9488769d6b3a120e859f83 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 15 Dec 2021 10:52:49 +0200 Subject: build/postcss.config.js: minor tweaks (#35506) --- build/postcss.config.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'build') 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' } } } -- cgit v1.2.3