Skip to content

Commit

Permalink
add rtlcss dependency and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
elquchiri committed Feb 21, 2024
1 parent a7f2b32 commit b9b12ff
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
34 changes: 29 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,35 @@
RTLCSS Plugin helps you transform your hole web site to support Right-To-Left.

## Installation
```bash
npm i rtlcss-plugin
```

## Use
```bash
plugins: [
new RtlCssPlugin({
filename: 'app.css'
})
],
entry: {
app: []
},
output: {
path: path.resolve(__dirname, 'public/build'),
filename: '[name].js',
publicPath: '/build/',
},
module: {
rules: [
{
test: /\.scss$/,
use: [
miniCssExtractPlugin.loader,
'css-loader',
'sass-loader',
],
},
],
},
plugins: [
new RtlCssPlugin({
filename: 'app-rtl.css'
})
],
```
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "Modern Webpack RTLCSS Plugin",
"main": "index.js",
"dependencies": {
"rtlcss": "^4.1.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit b9b12ff

Please sign in to comment.