.NET Core and Webpack
I stopped working with JS about three years ago, and even then I was working on a legacy app. Lately I have been getting back up to speed.
I just learnt a bit about Webpack and would like to use it with .NET Core. I can make Webpack bundle stuff up, but I was wondering about one detail.
While developing in VS Code, I have to open two integrated terminals. In the first one I issue a dotnet watch run so it rebuilds on its own whenever I make change on the back end. In the other integrated terminal I issue a npm run build which then bundles stuff up. I plan on introducing a hot reload for Webpack as well.
Am I doing this right? I feel like all of this could be done in a single command.
Is there a way to start up Webpack via dotnet CLI? Or am I thinking all wrong about this?
0 comments:
Post a Comment