i have done some modifications in default CSS files like style-m.css and style-i.css.
if i do upgradation(setup:upgrade) modifications in css file are missing.
Hello @sekhar_n
Run below commands after upgrade command:
php bin/magento setup:static-content:deploy
set the permission if required.
Manish,
My Problem is if i write a code like
.product-info-price .price:after {
content: '(Include GST)';
font-size: xx-small;
font-weight: 400;
margin-left: 10px;
} in magento default css files(styles-i and styles-m).
if i run setup:upgrade command the above code is removing from magento default css files automatically.
Hello @sekhar_n
are you changing directly in pub folder?
You should not edit/modify files within pub/* or vendor/* directory. Pub is for deployment and vendor is for default structure, which you override via your template or custom modules. Instead:
Some useful references:
This is the flowchart that how magento2 process css files (source: inchoo)