diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-12-15 11:52:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 11:52:49 +0300 |
commit | a22694da130e0c4e3e9488769d6b3a120e859f83 (patch) | |
tree | 3a626d7e2460ecf7e5eafc37c0380dbb76f8b241 /build | |
parent | e0960b08e030f8c4c0c838c1dd0c392209d51f92 (diff) |
build/postcss.config.js: minor tweaks (#35506)
Diffstat (limited to 'build')
-rw-r--r-- | build/postcss.config.js | 18 |
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' } } } |