Including all file matching regex razor cshtml
|Added at||2016-12-29 22:12|
I want to include Angular2 build files in a CSHTML file.
Currently, my include is:
But Angular2 produce, on each prod build, files with different identifiers in the file name.
I don't want to deactivate (if it's even possible) the fact these identifiers are included (for non-cache purpose). A person answered on a github issue page some regex could be used to make the include:
But I don't see how to pass it to my C#/cshtml file.
It should result on including all files matching the pattern in a given directory (wwwroot, or ~ as a shortcut).
Any idea on how to achieve this?