rtl-css-loader

1.0.1 • Public • Published

(rtl) css loader for webpack

Fork of the css loader, improved for rtl.

Drop-in replacement of the css-loader, it simply checks the dir attribute on the html tag on the page, then injects either the regular css or the rtl'ized css.

Uses rtlcss under the hood.

installation

npm install rtl-css-loader --save-dev

Usage

Use it exactly like the css-loader:

module.exports = {
  module: {
    loaders: [
      {
        test: /\.css$/,
        loaders: ['style', 'rtl-css']
      },
    ]
  }
};

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    150
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    150
  • 1.0.0
    1

Package Sidebar

Install

npm i rtl-css-loader

Weekly Downloads

151

Version

1.0.1

License

MIT

Last publish

Collaborators

  • romainberger