feat: postcss RTL automated convert.

This commit is contained in:
a.bouhuolia
2021-06-07 18:58:25 +02:00
parent a70fd300f2
commit d520e016f2
3 changed files with 7 additions and 1 deletions

View File

@@ -103,6 +103,11 @@ module.exports = function(webpackEnv) {
// so that it honors browserslist config in package.json // so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs. // which in turn let's users customize the target behavior as per their needs.
postcssNormalize(), postcssNormalize(),
// Postcss rtlcss plugin.
require( 'postcss-rtl' )({
// options here.
}),
], ],
sourceMap: isEnvProduction && shouldUseSourceMap, sourceMap: isEnvProduction && shouldUseSourceMap,
}, },

View File

@@ -61,6 +61,7 @@
"postcss-loader": "3.0.0", "postcss-loader": "3.0.0",
"postcss-normalize": "8.0.1", "postcss-normalize": "8.0.1",
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
"postcss-rtl": "^1.7.3",
"postcss-safe-parser": "4.0.1", "postcss-safe-parser": "4.0.1",
"ramda": "^0.27.1", "ramda": "^0.27.1",
"react": "^16.12.0", "react": "^16.12.0",

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html dir="ltr" lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicons/favicon-32.ico" sizes="32x32"> <link rel="icon" href="%PUBLIC_URL%/favicons/favicon-32.ico" sizes="32x32">