Understanding CSS Variables

3 min readCSS variables, or “CSS Custom Properties”. It allows you to work with variables directly in CSS. They are very useful for reducing repetition in CSS, and also for powerful runtime effects like theme switching and has a various polyfilling future CSS features. It believes in the principle DRY — Don’t Repeat Yourself. With the help of CSS…

Read More

How to clear git local cache

< 1 min readThere are certain situations when you unknowingly add files to git and you try to remove those files later on by adding the names to .gitignore. Even though you add the name of the files in .gitignore, git will continue to track those files even if they were added to the .gitignore later on. To…

Read More

How to exclude files/subfolder in Git .gitignore

< 1 min readTo exclude a sub-folder inside a folder in .gitignore, the following can be done. app/* !app/subfolder/   app/subfolder/* !app/subfolder/subfolder2/ This will ignore all files and sub-folders inside “subfolder” but it will ignore the “subfolder2” Note: Using * after the slash(/) indicates that the folder can be ignored but there maybe other conditions below for other…

Read More

Magento 2 – How to Reindex in Magento 2 with Command Line Interface CLI

2 min readReindexing in Magento is required to reduce the time spent on calculating the final price including cart rules price, bundle price etc. So Reindexing the Magento Catalog after updating the price is essential to show the correct price on the frontend. There are 8 kinds of Magento Indexers,  1. Category Products 2. Product categories 3. Product price…

Read More