# Webpack Arabic css plugin
A webpack plugin for generating a custom arabic version css for the indivdual css files using cssjanus.

## Getting started
- npm i webpackarabiccssplugin --save-dev

### webpack.config.js

```
 const ArabicCssPlugin = require('webpackarabiccssplugin');
 ....
 ....
 plugins: [
 ...,
 new ArabicCssPlugin({
    rtlFileDeliminator: "ar",
    excludeFiles: /\.ar\.css$/,
    includeFiles: /\*.scss$/
 })
 ]
 ```

This plugin should be used with the generated css files only. So, use plugins like mini extract and css-loader for converting into css file.

## Options

### rtlFileDeliminator
- Default - "rtl"
- Deliminator to add after the file name in the orignal file source.
- ```_OF_``` value signifies that the existing file is transformed

### excludeFiles
- Default - /\.rtl\.css$/
- Ignore pattern for the css files which needs to be ignored during compilation.

### includeFiles
- Default - /\.css$/
- Set of files to run the arabic file transformations on.