How can add CSS and JS File in admin panel of specific page.too many pages in admin panel e.g product,sales->order ,order view ,invoice,ship etc . . .
I want to load 1 CSS or JS file in New Invoice page.
Or other solution will be work for me if add CSS or JS code in .phtml file?
how can add this ?
Best Answer
1 Create a module for example
Vendor/Module
2 Create a new file
view/adminhtml/layout/default.xml in the module
3) Add .css file and add js file in web folder as below path:
Run below commands and check.
php bin/magento cache:clean
php bin/magento setup:static-content:deploy