chore: remove deprecated webpack-pwa-manifest

This commit is contained in:
Tim 2026-01-14 04:15:41 +01:00
parent f37e119644
commit a11df877a6
9 changed files with 61 additions and 824 deletions

BIN
images/icon_196x196.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

BIN
images/icon_512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

59
manifest.json Normal file
View file

@ -0,0 +1,59 @@
{
"name": "Stremio Web",
"short_name": "Stremio",
"description": "Freedom To Stream",
"background_color": "#161523",
"theme_color": "#2a2843",
"orientation": "any",
"display": "standalone",
"display_override": ["standalone"],
"scope": "./",
"start_url": "./",
"icons": [
{
"src": "favicons/icon_256x256.ico",
"sizes": "256x256",
"type": "image/vnd.microsoft.icon"
},
{
"src": "images/maskable_icon_512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "images/maskable_icon_196x196.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "images/icon_512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "images/icon_196x196.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "any"
}
],
"screenshots": [
{
"src": "screenshots/board_wide.webp",
"sizes": "1440x900",
"type": "image/webp",
"form_factor": "wide",
"label": "Homescreen of Stremio"
},
{
"src": "screenshots/board_narrow.webp",
"sizes": "414x896",
"type": "image/webp",
"form_factor": "narrow",
"label": "Homescreen of Stremio"
}
]
}

View file

@ -80,7 +80,6 @@
"webpack": "5.97.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "^5.1.0",
"webpack-pwa-manifest": "^4.3.0",
"workbox-webpack-plugin": "^7.3.0"
}
}

File diff suppressed because it is too large Load diff

View file

@ -7,6 +7,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Stremio">
<link rel="icon" type="image/x-icon" href="<%= htmlWebpackPlugin.options.faviconsPath %>/favicon.ico">
<link rel="manifest" href="manifest.json" />
<title>Stremio - Freedom to Stream</title>
<%= htmlWebpackPlugin.tags.headTags %>
</head>

View file

@ -10,7 +10,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const WorkboxPlugin = require('workbox-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const WebpackPwaManifest = require('webpack-pwa-manifest');
const packageJson = require('./package.json');
const COMMIT_HASH = execSync('git rev-parse HEAD').toString().trim();
@ -233,6 +232,7 @@ module.exports = (env, argv) => ({
{ from: 'images', to: 'images' },
{ from: 'screenshots/*.webp', to: './' },
{ from: '.well-known', to: '.well-known' },
{ from: 'manifest.json', to: 'manifest.json' },
]
}),
new MiniCssExtractPlugin({
@ -245,56 +245,5 @@ module.exports = (env, argv) => ({
faviconsPath: 'favicons',
imagesPath: 'images',
}),
new WebpackPwaManifest({
name: 'Stremio Web',
short_name: 'Stremio',
description: 'Freedom To Stream',
background_color: '#161523',
theme_color: '#2a2843',
orientation: 'any',
display: 'standalone',
display_override: ['standalone'],
scope: './',
start_url: './',
publicPath: './',
icons: [
{
src: 'images/icon.png',
destination: 'icons',
sizes: [196, 512],
purpose: 'any'
},
{
src: 'images/maskable_icon.png',
destination: 'maskable_icons',
sizes: [196, 512],
purpose: 'maskable',
ios: true
},
{
src: 'favicons/favicon.ico',
destination: 'favicons',
sizes: [256],
}
],
screenshots : [
{
src: 'screenshots/board_wide.webp',
sizes: '1440x900',
type: 'image/webp',
form_factor: 'wide',
label: 'Homescreen of Stremio'
},
{
src: 'screenshots/board_narrow.webp',
sizes: '414x896',
type: 'image/webp',
form_factor: 'narrow',
label: 'Homescreen of Stremio'
}
],
fingerprints: false,
ios: true
}),
].filter(Boolean)
});