Last active
December 12, 2015 01:29
-
-
Save danielkillyevo/4691913 to your computer and use it in GitHub Desktop.
web.config for enables js and css files in the view folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
//...... | |
//...... | |
<system.web> | |
<httpHandlers> | |
<add path="*.js" verb="GET,HEAD" type="System.Web.StaticFileHandler" /> | |
<add path="*.css" verb="GET,HEAD" type="System.Web.StaticFileHandler" /> | |
<add path="*" verb="*.cshtml" type="System.Web.HttpNotFoundHandler"/> | |
</httpHandlers> | |
//..... | |
//..... | |
</system.web> | |
//...... | |
//...... | |
<system.webServer> | |
//...... | |
<handlers> | |
<remove name="BlockViewHandler"/> | |
<add name="JavaScriptHandler" path="*.js" verb="GET,HEAD" type="System.Web.StaticFileHandler" /> | |
<add name="CssHandler" path="*.css" verb="GET,HEAD" type="System.Web.StaticFileHandler" /> | |
<add name="BlockViewHandler" path="*" verb="*.cshtml" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> | |
</handlers> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment