WebContent.Packer 1.0.2

dotnet add package WebContent.Packer --version 1.0.2
                    
NuGet\Install-Package WebContent.Packer -Version 1.0.2
                    
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="WebContent.Packer" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WebContent.Packer" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="WebContent.Packer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WebContent.Packer --version 1.0.2
                    
#r "nuget: WebContent.Packer, 1.0.2"
                    
#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.
#:package WebContent.Packer@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WebContent.Packer&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=WebContent.Packer&version=1.0.2
                    
Install as a Cake Tool

WebContent.Packer

Nuget

Pack web contents into embedded resources, compatible with vite, webpack, rollup or any other, even vanilla js

Usage

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <Nullable>enable</Nullable>
        <UseWPF>true</UseWPF>
        <LangVersion>11.0</LangVersion>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="WebContent.Packer" Version="1.0.0" />
    </ItemGroup>

</Project>

That's it, default webcontent folder is ./Views, ./View/dist/index.js and ./View/dist/style.css will compile as EmbeddedResource within dll.

You can change default folder via ViewPackageRoot, like this:

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <Nullable>enable</Nullable>
        <UseWPF>true</UseWPF>
        <LangVersion>11.0</LangVersion>
        <ViewPackageRoot>where/ever/you/are</ViewPackageRoot>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="WebContent.Packer" Version="1.0.0" />
    </ItemGroup>

</Project>

also there is option to change default npm client which is pnpm, like this <DefaultNpmClient>yarn</DefaultNpmClient>

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.2 303 3/7/2023
1.0.1 268 3/7/2023
1.0.0 269 3/6/2023

Pack web contents into embedded resources, compatible with vite, webpack, rollup or any other, even vanilla js