├── AspAndWebpack ├── src │ ├── index.ts │ └── index.less ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _Layout_Template.cshtml │ └── Web.config ├── favicon.ico ├── Global.asax ├── App_Start │ ├── FilterConfig.cs │ └── RouteConfig.cs ├── Global.asax.cs ├── Controllers │ └── HomeController.cs ├── tsconfig.json ├── Web.Debug.config ├── Web.Release.config ├── webpack.dev.js ├── package.json ├── Properties │ └── AssemblyInfo.cs ├── packages.config ├── webpack.common.js ├── webpack.prod.js ├── Web.config ├── ApplicationInsights.config └── AspAndWebpack.csproj ├── README.md ├── AspAndWebpack.sln └── .gitignore /AspAndWebpack/src/index.ts: -------------------------------------------------------------------------------- 1 | import "./index.less"; 2 | import "bootstrap"; -------------------------------------------------------------------------------- /AspAndWebpack/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /AspAndWebpack/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JonJam/aspnet_with_webpack/HEAD/AspAndWebpack/favicon.ico -------------------------------------------------------------------------------- /AspAndWebpack/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="AspAndWebpack.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /AspAndWebpack/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "About"; 3 | } 4 |
Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # aspnet_with_webpack 2 | 3 | This project demonstrates how to use [webpack](https://webpack.js.org/) within an [ASP.NET MVC 5](https://docs.microsoft.com/en-us/aspnet/mvc/mvc5) project. 4 | 5 | See my [blog post](https://medium.com/@jonjam/combining-webpack-with-asp-net-mvc-5-a5bd07c49d0b) for more details. -------------------------------------------------------------------------------- /AspAndWebpack/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
8 | 9 |15 | ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that 16 | enables a clean separation of concerns and gives you full control over markup 17 | for enjoyable, agile development. 18 |
19 | 20 |NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
24 | 25 |You can easily find a web hosting company that offers the right mix of features and price for your applications.
29 | 30 |