mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
added pwa cacher
This commit is contained in:
parent
8ba5d4d238
commit
3a74299ece
8 changed files with 448 additions and 18 deletions
22
config/pwa.example.js
Normal file
22
config/pwa.example.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
MANIFEST: (src) => ({
|
||||
name: 'Редактор маршрутов',
|
||||
short_name: 'Маршруты',
|
||||
description: 'Велосипедные маршруты в новосибирске',
|
||||
background_color: '#333333',
|
||||
theme_color: '#01579b',
|
||||
display: 'fullscreen',
|
||||
'theme-color': '#01579b',
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{
|
||||
src, // : path.resolve('./src/sprites/app.png')
|
||||
sizes: [96, 128, 192, 256, 384, 512],
|
||||
destination: path.join('assets', 'icons')
|
||||
}
|
||||
]
|
||||
}),
|
||||
PUBLIC_PATH: 'https://alpha-map.vault48.org/',
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue