{"library":"rtlcss-webpack-plugin","title":"rtlcss-webpack-plugin","description":"Webpack plugin that creates a second CSS bundle processed for right-to-left (RTL) scripts, using rtlcss under the hood. Version 4.0.7 is the latest stable release. It works alongside extract-text-webpack-plugin or mini-css-extract-plugin to generate a parallel RTL stylesheet (e.g., style.rtl.css). Unlike webpack-rtl-plugin, this plugin is specifically designed for Webpack 4 and requires ExtractTextPlugin or equivalent. Maintenance is minimal, with no updates since 2020.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install rtlcss-webpack-plugin"],"cli":null},"imports":["import RtlCssPlugin from 'rtlcss-webpack-plugin'","import type { RtlCssPluginOptions } from 'rtlcss-webpack-plugin'","import RtlCssPlugin from 'rtlcss-webpack-plugin'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const path = require('path');\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\nconst RtlCssPlugin = require('rtlcss-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: {\n    path: path.resolve(__dirname, 'dist'),\n    filename: 'bundle.js'\n  },\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: [MiniCssExtractPlugin.loader, 'css-loader']\n      }\n    ]\n  },\n  plugins: [\n    new MiniCssExtractPlugin({ filename: 'style.css' }),\n    new RtlCssPlugin({ filename: 'style.rtl.css' })\n  ]\n};","lang":"javascript","description":"Creates two CSS bundles: one LTR (style.css) and one RTL (style.rtl.css) using MiniCssExtractPlugin and rtlcss-webpack-plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}