added pwa cacher

This commit is contained in:
Integral Team 2019-09-11 16:53:47 +07:00
parent 8ba5d4d238
commit 3a74299ece
8 changed files with 448 additions and 18 deletions

22
config/pwa.example.js Normal file
View 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/',
};