summaryrefslogtreecommitdiffstats
path: root/build/postcss.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/postcss.config.js')
-rw-r--r--build/postcss.config.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/build/postcss.config.js b/build/postcss.config.js
new file mode 100644
index 0000000..7f8186d
--- /dev/null
+++ b/build/postcss.config.js
@@ -0,0 +1,19 @@
+'use strict'
+
+const mapConfig = {
+ inline: false,
+ annotation: true,
+ sourcesContent: true
+}
+
+module.exports = context => {
+ return {
+ map: context.file.dirname.includes('examples') ? false : mapConfig,
+ plugins: {
+ autoprefixer: {
+ cascade: false
+ },
+ rtlcss: context.env === 'RTL'
+ }
+ }
+}