How can I add extra CSS or js file in admin theme?
I don鈥檛 want to create a new admin theme.
Every .js file that are added in the /Assets/js folder of TheAdmin theme will be bundled by the gulp pipeline. Though if you want to customize some admin views you will also require to modify the TheAdmin theme. I strongly suggest that you create a new Admin theme by copying the TheAdmin theme and renaming it for doing this. Else you will run into merge conflicts if we change anything the the TheAdmin theme. Knowing that you are using OC as a Nuget package I think that this will be the most relevant way for doing this.
so i have to create new admin them.
Just for infos in your theme manifest you will need the admin tag and you can specify that your theme is based on TheAdmin theme so that you don't need to override again all the views.
...
Tags = new [] { "admin" },
BaseTheme = "TheAdmin"
...
TODO: Create a guide on how to create a custom admin theme.
See #5380 issue to create an admin theme
Most helpful comment
TODO: Create a guide on how to create a custom admin theme.