![]() Try this example and see how you get on, or perhaps try another tool such as CSSNano. This was just a quick tip, to make you aware of the possibilities Hooks can give us. Code example by Mohammad Younes creator of RTLCSS Conclusion In our case the style rules within these files have also been converted to cater for RTL writing direction. Save, then once these files are compiled you should find a new stylesheet compiled with the. Run the HooksĪdd some changes to your SCSS, LESS, or Stylus stylesheets. In this case, we will append the stylesheets with. $" line sets the output of our files processed with the rtlcss command. Within the empty box, add the following script. In this case, we would like it to run when the output ends with. Select the conditions for when to run the Shell script. Not sure what’s going on here? Check out:Īssuming you have the project folder added in CodeKit (if not, drag your folder into the CodeKit window to get started), go to the Project Settings and scroll down to the Hooks Tab.Ĭlick on the plus icon to create a new Hook, rename the Hook name for clarity, and select Shell Script where you see Run the following. Install the command through npm globally, so it will be accessible anywhere on our system. To begin with, we will need the rtlcss command installed.
0 Comments
Leave a Reply. |