Skip to content

Commit

Permalink
chore(merge): release 4.61 to 4.62
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Dec 15, 2021
2 parents 539cf8d + cf0f9d4 commit 52721c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blockchain-wallet-v4",
"version": "4.63.0",
"version": "4.62.0",
"license": "AGPL-3.0-or-later",
"private": true,
"author": {
Expand Down
24 changes: 8 additions & 16 deletions packages/blockchain-wallet-v4-frontend/webpackBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,14 @@ const buildWebpackConfig = (envConfig, extraPluginsList) => ({
devtool: false, // default is false but needs to be set so dev config can override
entry: {
app: {
dependOn: 'polyfills',
filename: 'app-[fullhash:8].js',
filename: 'app-[fullhash:10].js',
import: CONFIG_PATH.src + '/index.js'
},
polyfills: {
filename: 'polyfills-[contenthash:8].js',
import: [
'@babel/polyfill',
'bignumber.js',
'browserify-rsa',
'browserify-sign',
'stream-browserify'
]
}
},
output: {
assetModuleFilename: 'resources/[name][ext]', // default asset path that is usually overwritten in specific modules.rules
chunkFilename: (pathData) =>
pathData.chunk.name ? '[name]-[contenthash:8].js' : 'chunk-[contenthash:8].js',
pathData.chunk.name ? '[name]-[contenthash:10].js' : 'chunk-[contenthash:10].js',
crossOriginLoading: 'anonymous',
path: CONFIG_PATH.ciBuild,
publicPath: '/'
Expand Down Expand Up @@ -128,7 +117,7 @@ const buildWebpackConfig = (envConfig, extraPluginsList) => ({
{
test: /\.(png|jpg|gif|svg|ico|webmanifest|xml)$/,
type: 'asset/resource',
generator: { filename: 'img/[name][ext]?[contenthash]' }
generator: { filename: 'img/[name][ext]?[contenthash:10]' }
},
{ test: /\.(AppImage|dmg|exe)$/, type: 'asset/resource' },
{ test: /\.(pdf)$/, type: 'asset/resource' },
Expand Down Expand Up @@ -162,7 +151,7 @@ const buildWebpackConfig = (envConfig, extraPluginsList) => ({
devMode: 'light',
logo: CONFIG_PATH.src + '/assets/favicon.png',
mode: 'webapp',
prefix: 'img/favicons-[contenthash]/',
prefix: 'img/favicons-[contenthash:10]/',
icons: {
android: true,
appleIcon: true,
Expand All @@ -178,7 +167,10 @@ const buildWebpackConfig = (envConfig, extraPluginsList) => ({
extraPluginsList
),
optimization: {
moduleIds: 'named',
moduleIds: 'deterministic',
runtimeChunk: {
name: (entrypoint) => `runtime-${entrypoint.name}-${Date.now()}`,
},
splitChunks: {
maxSize: 1000000, // 1 MB max chunk size
cacheGroups: {
Expand Down

0 comments on commit 52721c4

Please sign in to comment.