WebContent.Packer
1.0.2
dotnet add package WebContent.Packer --version 1.0.2
NuGet\Install-Package WebContent.Packer -Version 1.0.2
<PackageReference Include="WebContent.Packer" Version="1.0.2" />
<PackageVersion Include="WebContent.Packer" Version="1.0.2" />
<PackageReference Include="WebContent.Packer" />
paket add WebContent.Packer --version 1.0.2
#r "nuget: WebContent.Packer, 1.0.2"
#:package WebContent.Packer@1.0.2
#addin nuget:?package=WebContent.Packer&version=1.0.2
#tool nuget:?package=WebContent.Packer&version=1.0.2
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>
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.
Pack web contents into embedded resources, compatible with vite, webpack, rollup or any other, even vanilla js