WebContent.Packer 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package WebContent.Packer --version 1.0.1                
NuGet\Install-Package WebContent.Packer -Version 1.0.1                
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.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebContent.Packer --version 1.0.1                
#r "nuget: WebContent.Packer, 1.0.1"                
#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 WebContent.Packer as a Cake Addin
#addin nuget:?package=WebContent.Packer&version=1.0.1

// Install WebContent.Packer as a Cake Tool
#tool nuget:?package=WebContent.Packer&version=1.0.1                

WebContent.Packer

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 255 3/7/2023
1.0.1 229 3/7/2023
1.0.0 230 3/6/2023

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