Created
October 3, 2013 11:50
-
-
Save mikeplate/6808586 to your computer and use it in GitHub Desktop.
Parts extracted from web.config in order to map .js file extension as an ordinary aspx page
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <configuration> | |
| <system.web> | |
| <compilation> | |
| <buildProviders> | |
| <remove extension=".js"/> | |
| <add extension=".js" type="System.Web.Compilation.PageBuildProvider" /> | |
| </buildProviders> | |
| </compilation> | |
| </system.web> | |
| <system.webServer> | |
| <handlers> | |
| <add name="JavaScript" path="*.js" verb="GET" type="System.Web.UI.PageHandlerFactory" /> | |
| </handlers> | |
| </system.webServer> | |
| </configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment