From d520e016f2600ae5376f950a1c78e9a74153494c Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Mon, 7 Jun 2021 18:58:25 +0200 Subject: [PATCH] feat: postcss RTL automated convert. --- client/config/webpack.config.js | 5 +++++ client/package.json | 1 + client/public/index.html | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/config/webpack.config.js b/client/config/webpack.config.js index f671e349b..c33bfc4a8 100644 --- a/client/config/webpack.config.js +++ b/client/config/webpack.config.js @@ -103,6 +103,11 @@ module.exports = function(webpackEnv) { // so that it honors browserslist config in package.json // which in turn let's users customize the target behavior as per their needs. postcssNormalize(), + + // Postcss rtlcss plugin. + require( 'postcss-rtl' )({ + // options here. + }), ], sourceMap: isEnvProduction && shouldUseSourceMap, }, diff --git a/client/package.json b/client/package.json index e1aabffbe..91357cf2d 100644 --- a/client/package.json +++ b/client/package.json @@ -61,6 +61,7 @@ "postcss-loader": "3.0.0", "postcss-normalize": "8.0.1", "postcss-preset-env": "6.7.0", + "postcss-rtl": "^1.7.3", "postcss-safe-parser": "4.0.1", "ramda": "^0.27.1", "react": "^16.12.0", diff --git a/client/public/index.html b/client/public/index.html index 35b8d3acb..9a52dc7d6 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -1,5 +1,5 @@ - +