Skip to content

Commit

Permalink
Minification improvements (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvesmiguel1 authored Apr 3, 2024
1 parent 2f93c1b commit 0fe4be3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ViewGenerator/ViewGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<AssemblyTitle>ViewGenerator</AssemblyTitle>
<Product>ViewGenerator</Product>
<Description>Generates .NET View bindings from typescript</Description>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<PackageId>ViewGenerator</PackageId>
<PackageTags>Library</PackageTags>

Expand Down
1 change: 1 addition & 0 deletions ViewGenerator/tools/webpack/Plugins/CommonConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ let getCommonConfiguration = (isProductionBuild: boolean, cacheName: string, lib

if (isProductionBuild) {
Configuration.optimization = {
flagIncludedChunks: false,
minimize: true,
minimizer: [new TerserPlugin({
terserOptions: {
Expand Down
10 changes: 6 additions & 4 deletions ViewGenerator/tools/webpack/webpack_plugins.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ const config = (env, argv) => {
"Plugins",
sanitizeCommandLineParam(env.assemblyName));

standardConfig.optimization = {
runtimeChunk: {
name: "PluginsRuntime"
}
if (!standardConfig.optimization) {
standardConfig.optimization = {};
}

standardConfig.optimization.runtimeChunk = {
name: "PluginsRuntime"
};

// Plugins
Expand Down

0 comments on commit 0fe4be3

Please sign in to comment.