
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@automattic/webpack-rtl-plugin
Advanced tools
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.
Originally forked from https://github.com/romainberger/webpack-rtl-plugin, commit aca883ad70671a5d2a90c676fe8ea60d42c8759b (tag v2.0.0).
This plugin contains Automattic changes to the original webpack-rtl-plugin
and is released as @automattic/webpack-rtl-plugin
.
Check out the webpack-rtl-example to see an example of an app using the rtl-css-loader and webpack-rtl-plugin.
$ npm install @automattic/webpack-rtl-plugin
Add the plugin to your webpack configuration:
const WebpackRTLPlugin = require( '@automattic/webpack-rtl-plugin' );
module.exports = {
entry: path.join( __dirname, 'src/index.js' ),
output: {
path: path.resolve( __dirname, 'dist' ),
filename: 'bundle.js',
},
module: {
rules: [
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
/*...,*/
},
},
],
},
],
},
plugins: [
new MiniCssExtractPlugin( {
filename: 'style.css',
} ),
new WebpackRTLPlugin(),
],
};
This will create the normal style.css
and an additionnal style.rtl.css
.
new WebpackRTLPlugin({
options: {},
plugins: [],
})
test
a RegExp (object or string) that must match asset filename.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 []
.FAQs
Webpack plugin to produce a rtl css bundle.
The npm package @automattic/webpack-rtl-plugin receives a total of 1,661 weekly downloads. As such, @automattic/webpack-rtl-plugin popularity was classified as popular.
We found that @automattic/webpack-rtl-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 36 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.