SystemWebpack 1.0.0-beta1

This is a prerelease version of SystemWebpack.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package SystemWebpack --version 1.0.0-beta1
NuGet\Install-Package SystemWebpack -Version 1.0.0-beta1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SystemWebpack" Version="1.0.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SystemWebpack --version 1.0.0-beta1
#r "nuget: SystemWebpack, 1.0.0-beta1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SystemWebpack as a Cake Addin
#addin nuget:?package=SystemWebpack&version=1.0.0-beta1&prerelease

// Install SystemWebpack as a Cake Tool
#tool nuget:?package=SystemWebpack&version=1.0.0-beta1&prerelease

SystemWebpack - Webpack dev server support for System.Web (old ASP.NET)

It is very nice that we have ASP.NET Core, and got nice toys to play with like built-in support for the Webpack dev server. But what about System.Web? So many projects are still built on the old ASP.NET framework, where we don't have Webpack dev server support.

This library aims to fix that. This library provides support for the good parts of Webpack in System.Web projects. This library is heavily inspired by Microsoft.AspNetCore.JavascriptServices and in fact uses much code from that project.

NuGet Version and Downloads count

Features

Support for:

  • Webpack dev middleware
  • Hot module replacement, for more information, view the webpack docs.

Used for development purposes only.

Usage

Ensure you got the following node packages installed in your web project package.json:

Install the package the package from NuGet:

Add-Package SystemWebpack

Modify your web.config:

<system.webServer>
	<handlers>
	  
	  <add name="WebpackDevJsonHandleModule" verb="*" path="*.json" type="System.Web.StaticFileHandler"/>
	  <add name="WebpackDevJsHandleModule" verb="*" path="*.js" type="System.Web.StaticFileHandler"/>
	  <add name="WebpackDevHmrHandleModule" verb="*" path="__webpack_hmr" type="System.Web.StaticFileHandler"/>
	  <add name="WebpackDevBuildHandleModule" verb="*" path="build/*" type="System.Web.StaticFileHandler"/>
	</handlers>
</system.webServer>
<location path="__webpack_hmr">
	<system.web>
	  <httpRuntime executionTimeout="3600" enableKernelOutputCache="false"/>
	</system.web>
	<system.webServer>
	  <urlCompression doDynamicCompression="false" doStaticCompression="false"/>
	</system.webServer>
</location>

Ready to go!

Building the project

To build the project ensure you have:

  • .NET Framework 4.5.2 or higher installed
  • Visual Studio with Web Development tools
  • Powershell 4 or higher

To build the project simply run:

build

To build the project simply run:

build -Target NuGet-Pack

Contributions

This project is accepting contributions. Please keep the following guidelines in mind:

  • Add tests for new code added
  • Keep in line with the existing code style
  • Don't reformat existing code
  • Propose new features before creating pull requests to prevent disappointment
Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 is compatible.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-beta2 1,262 3/7/2020
1.0.0-beta1 27,014 10/7/2018

Initial version