Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.09 KB

README.md

File metadata and controls

19 lines (13 loc) · 1.09 KB

AspNetWebpack-Template

This project is a minimal template for using ASP.NET Core with Webpack.
It is built upon the original MVC template and can be customized any way you want.

Additional related repos:

The webpack configuration is configured to split all node_modules code into a reusable Vendor.js bundle.

The project also creates a view specific bundle (e.g. Home_Index.js) for each view or Razor Page in a corresponding folder structure. Alternatively bundles can be manually created by adding files to the bundles folder.

Start development server using npm start in project folder.
Build production files using npm run build in project folder.

Bundles will be built for folders under pages and views that matches a corresponding MVC view or Razor page.
Bundles will not be built for partial MVC views and Razor pages (files starting with a underscore).