From fbb5766e5a449cd4b1203e8baa7ea0043d1d3cb5 Mon Sep 17 00:00:00 2001 From: sidati Date: Sun, 26 May 2019 23:35:03 +0000 Subject: [PATCH] Fix a typo --- README.md | 15 +++++++++++---- package.json | 10 +++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 50ba4741..acbbf41e 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ # rtlcss loader for webpack + Work just like **[css-loader](https://github.com/webpack/css-loader)** and use **[rtlcss](https://github.com/MohammadYounes/rtlcss/)** to RTLify your css. ## installation -`npm install rtlcss-loader --save-dev` +`npm i rtlcss-loader -D` ## Usage [Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) -``` javascript +```javascript module.exports = { module: { loaders: [ @@ -23,6 +24,7 @@ module.exports = { ``` for SASS/LESS you'll need **[sass-loader](https://github.com/jtangelder/sass-loader)** first : + ```javascript module.exports = { module: { @@ -38,14 +40,19 @@ module.exports = { ## IMPORTANT -if you want to use [rtlcss directives](http://rtlcss.com/learn/usage-guide/control-directives/) such as `/*rtl:ignore*/` make sure you are using it as a SPECIAL comment by adding `!` before your comment, for example : +if you want to use [rtlcss directives](http://rtlcss.com/learn/usage-guide/control-directives/) such as `/*rtl:ignore*/` make sure you are using it as a SPECIAL comment by adding `!` before your comment. + +❌ for example : + ```css div { /*rtl:ignore*/ margin: -25px -25px 0 0; } ``` -must be : + +✔ must be : + ```css div { /*!rtl:ignore*/ diff --git a/package.json b/package.json index fa81a163..dba0f827 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,16 @@ { "name": "rtlcss-loader", - "version": "1.0.2", + "version": "1.0.3", "author": "Sidati MESSAITI", "description": "rtlcss loader module for webpack based on github.com/webpack/css-loader", "engines": { "node": ">=0.12.0" }, - "files": ["index.js", "locals.js", "lib"], + "files": [ + "index.js", + "locals.js", + "lib" + ], "dependencies": { "babel-code-frame": "^6.11.0", "css-selector-tokenizer": "^0.7.0", @@ -40,4 +44,4 @@ "url": "git@github.com:sidati/rtlcss-loader.git" }, "license": "MIT" -} +} \ No newline at end of file