mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 13:05:48 +00:00
chore: remove deprecated webpack-pwa-manifest
This commit is contained in:
parent
f37e119644
commit
a11df877a6
9 changed files with 61 additions and 824 deletions
BIN
images/icon_196x196.png
Normal file
BIN
images/icon_196x196.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9 KiB |
BIN
images/icon_512x512.png
Normal file
BIN
images/icon_512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
images/maskable_icon_196x196.png
Normal file
BIN
images/maskable_icon_196x196.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
BIN
images/maskable_icon_512x512.png
Normal file
BIN
images/maskable_icon_512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
59
manifest.json
Normal file
59
manifest.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -80,7 +80,6 @@
|
||||||
"webpack": "5.97.0",
|
"webpack": "5.97.0",
|
||||||
"webpack-cli": "5.1.4",
|
"webpack-cli": "5.1.4",
|
||||||
"webpack-dev-server": "^5.1.0",
|
"webpack-dev-server": "^5.1.0",
|
||||||
"webpack-pwa-manifest": "^4.3.0",
|
|
||||||
"workbox-webpack-plugin": "^7.3.0"
|
"workbox-webpack-plugin": "^7.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
771
pnpm-lock.yaml
771
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
|
@ -7,6 +7,7 @@
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-title" content="Stremio">
|
<meta name="apple-mobile-web-app-title" content="Stremio">
|
||||||
<link rel="icon" type="image/x-icon" href="<%= htmlWebpackPlugin.options.faviconsPath %>/favicon.ico">
|
<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>
|
<title>Stremio - Freedom to Stream</title>
|
||||||
<%= htmlWebpackPlugin.tags.headTags %>
|
<%= htmlWebpackPlugin.tags.headTags %>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
const WorkboxPlugin = require('workbox-webpack-plugin');
|
const WorkboxPlugin = require('workbox-webpack-plugin');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
const WebpackPwaManifest = require('webpack-pwa-manifest');
|
|
||||||
const packageJson = require('./package.json');
|
const packageJson = require('./package.json');
|
||||||
|
|
||||||
const COMMIT_HASH = execSync('git rev-parse HEAD').toString().trim();
|
const COMMIT_HASH = execSync('git rev-parse HEAD').toString().trim();
|
||||||
|
|
@ -233,6 +232,7 @@ module.exports = (env, argv) => ({
|
||||||
{ from: 'images', to: 'images' },
|
{ from: 'images', to: 'images' },
|
||||||
{ from: 'screenshots/*.webp', to: './' },
|
{ from: 'screenshots/*.webp', to: './' },
|
||||||
{ from: '.well-known', to: '.well-known' },
|
{ from: '.well-known', to: '.well-known' },
|
||||||
|
{ from: 'manifest.json', to: 'manifest.json' },
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
|
|
@ -245,56 +245,5 @@ module.exports = (env, argv) => ({
|
||||||
faviconsPath: 'favicons',
|
faviconsPath: 'favicons',
|
||||||
imagesPath: 'images',
|
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)
|
].filter(Boolean)
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue