How to bundle style and script files using layout in asp MVC?
Here is an example.
Layout1 uses style and script file for header and footer functionality. Sections are declared.
View1 uses Layout1 . It also contains style and script files in order to make this view work. Layout sections are updated using @section Sectioname.
Is there a way to bundle all styles and script files at View1? Should I bundle only files needed for Layout1 and apply it in layout code and add View1 files in @section?
What is a good way to resolve this issue?