https://github.com/sonujose/aspnetcore-react-webpack
React application bootstrapped in asp.net core with webpack
https://github.com/sonujose/aspnetcore-react-webpack
Last synced: 2 months ago
JSON representation
React application bootstrapped in asp.net core with webpack
- Host: GitHub
- URL: https://github.com/sonujose/aspnetcore-react-webpack
- Owner: sonujose
- Created: 2018-12-01T16:31:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T20:59:11.000Z (over 7 years ago)
- Last Synced: 2025-01-02T01:45:09.677Z (over 1 year ago)
- Language: TypeScript
- Size: 82 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React, .NET Core, Webpack
This application bootstraps react.js from asp.net core mvc app using webpack. Make sure node and npm installed in your machine.
Check npm and node version. Make sure both are updated
Update npm run - `npm i npm@latest -g`
If any of the node packages are not loaded please load package explicitly - `npm install`.
The npm modules are build during the dotnet build - see the csproj file (All the webpack magic happens there).
To Run the app - trigger `dotnet run`
```cmd
dotnet restore
dotnet build
dotnet run
```
## Analyze your webpack modules
This app consists of 2 webpack modules
- webpack.config.js - Application level files are modularized here
- webpack-config.vendor.js - Vendor dependencies are build here eg: react modules
Run
```cmd
webpack --profile --json >> stats.json
```
Open http://webpack.github.io/analyse/#modules or you can use any webpack visualizer
Upload stats.json file from your repository