Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rtlcss-webpack-plugin

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

  • 4.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
decreased by-50.76%
Maintainers
6
Weekly downloads
 
Created
Source

RtlCss Webpack Plugin Build Status npm version npm downloads

Webpack plugin to use in addition to extract-text-webpack-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.

This is almost entirely based on work done in webpack-rtl-plugin

Installation

$ npm install rtlcss-webpack-plugin

Usage

Add the plugin to your webpack configuration:

import RtlCssPlugin from 'rtlcss-webpack-plugin';

module.exports = {
  entry: path.join(__dirname, 'src/index.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader'})
      }
    ]
  },
  plugins: [new ExtractTextPlugin('style.css'), new RtlCssPlugin('style.rtl.css')]
};

This will create the normal style.css and an additional style.rtl.css.

Options

new RtlCssPlugin('[name].rtl.css');
new RtlCssPlugin({filename: '[name].rtl.css'});
  • filename Name of the result file. May contain [name], [id] and [hash]

FAQs

Package last updated on 17 Apr 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc