Skip to content

Commit

Permalink
fix "freebsd" package assembling
Browse files Browse the repository at this point in the history
* broken recently in f6d34ca due to the "asar: false" causing long file names preserving:
  .cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/lib/app/lib/fpm/util/tar_writer.rb:51:in `split_name': File "/opt/ElectronMail/resources/app/app/web/browser-window/vendors-node_modules_angular_cdk___ivy_ngcc___bundles_cdk-drag-drop_umd_js-node_modules_ngx-c-0c59fc.js" has a too long name (should be 100 or less) (Gem::Package::TooLongFileName)
  • Loading branch information
vladimiry committed Nov 5, 2020
1 parent a9ef01f commit 112d38c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webpack-configs/web/browser-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ const config = buildBaseWebConfig(
optimization: {
splitChunks: {
cacheGroups: {
defaultVendors: false,
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
filename({chunk}) {
if (!chunk?.hash) {
throw new Error(`Invalid "chunk.hash" value`);
}
return `vendor_${chunk.hash}.js`;
},
},
styles: {
name: "shared-vendor",
test: /[\\/]vendor[\\/]shared-vendor\.scss$/,
Expand Down

0 comments on commit 112d38c

Please sign in to comment.