2.0.4 • Published 4 years ago

webpackarabiccssplugin v2.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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.
2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago