Gathering detailed insights and metrics for webpack-rtl-plugin
Gathering detailed insights and metrics for webpack-rtl-plugin
Gathering detailed insights and metrics for webpack-rtl-plugin
Gathering detailed insights and metrics for webpack-rtl-plugin
rtlcss-webpack-plugin
Webpack plugin to use in addition to [extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin) to create a second css bundle, processed to be rtl.
@automattic/webpack-rtl-plugin
Webpack plugin to produce a rtl css bundle.
rtl-css-transform-webpack-plugin
Webpack plugin for transforming CSS from LTR to RTL.
msnt-webpack-rtl-plugin
Simple plugin to generate RTL version of CSS files with customizable output path
npm install webpack-rtl-plugin
Typescript
Module System
Node Version
NPM Version
JavaScript (98.46%)
CSS (1.54%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
48 Stars
63 Commits
33 Forks
3 Watchers
1 Branches
8 Contributors
Updated on Apr 15, 2025
Latest Version
2.0.0
Package Id
webpack-rtl-plugin@2.0.0
Size
71.00 kB
NPM Version
5.6.0
Node Version
8.11.3
Published on
Mar 15, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
Webpack plugin to use in addition to mini-css-extract-plugin to create a second css bundle, processed to be rtl.
This uses rtlcss under the hood, please refer to its documentation for supported properties.
Check out the webpack-rtl-example to see an example of an app using the rtl-css-loader and webpack-rtl-plugin.
1$ npm install webpack-rtl-plugin
Add the plugin to your webpack configuration:
1const WebpackRTLPlugin = require('webpack-rtl-plugin') 2 3module.exports = { 4 entry: path.join(__dirname, 'src/index.js'), 5 output: { 6 path: path.resolve(__dirname, 'dist'), 7 filename: 'bundle.js', 8 }, 9 module: { 10 rules: [ 11 { 12 test: /\.css$/, 13 use: [ 14 MiniCssExtractPlugin.loader, 15 { 16 loader: "css-loader", 17 options: { 18 ..., 19 } 20 } 21 ] 22 } 23 ], 24 }, 25 plugins: [ 26 new MiniCssExtractPlugin({ 27 filename: 'style.css', 28 }), 29 new WebpackRTLPlugin(), 30 ], 31}
This will create the normal style.css
and an additionnal style.rtl.css
.
new WebpackRTLPlugin({
filename: 'style.[contenthash].rtl.css',
options: {},
plugins: [],
diffOnly: false,
minify: true,
})
test
a RegExp (object or string) that must match asset filenamefilename
the filename of the result file. May contain patterns in brackets. Default to style.css
.
[contenthash]
a hash of the content of the extracted file[id]
the module identifier[name]
the module name[file]
the extracted file filename[filebase]
the extracted file basename[ext]
the extracted file extension[/(\.css)/i, '-rtl$1']
.
Replace applies to filename that specified in extract-text-webpack-plugin.options
Options given to rtlcss
. See the rtlcss documentation for available options.plugins
RTLCSS plugins given to rtlcss
. See the rtlcss documentation for writing plugins. Default to []
.diffOnly
If set to true
, the stylesheet created will only contain the css that differs from the source stylesheet. Default to false
.minify
will minify the css. You can also pass an object for the arguments passed to cssnano
. Default to true
.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/20 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
74 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More