mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-08-03 11:16:38 -04:00
Fix missing webmanifest (#1180)
This commit is contained in:
parent
d6b807f23f
commit
60a84faf30
@ -5,7 +5,7 @@ EXPOSE 80
|
||||
RUN mkdir /usr/share/nginx/html/current/
|
||||
COPY ./docker/index.nginx.html /usr/share/nginx/html/index.html
|
||||
COPY ./dist/manifest.json /usr/share/nginx/html/current/
|
||||
COPY ./dist/manifest.webapp /usr/share/nginx/html/current/
|
||||
COPY ./dist/manifest.webmanifest /usr/share/nginx/html/current/
|
||||
COPY ./dist/replayWorker.js /usr/share/nginx/html/current/
|
||||
COPY ./dist/service-worker.js /usr/share/nginx/html/current/
|
||||
COPY ./dist/index.html /usr/share/nginx/html/current/
|
||||
|
@ -48,7 +48,7 @@ const config = {
|
||||
},
|
||||
{ src: ['node_modules/bootstrap/dist/css/bootstrap.min.*'], dest: 'dist/www/css' },
|
||||
{ src: ['i18n/*'], dest: 'dist/i18n' },
|
||||
{ src: ['archives', 'backgroundscript.js', 'index.html', 'manifest.json', 'manifest.fx.v3.json', 'manifest.v2.json', 'manifest.webapp', 'package.json', 'LICENSE-GPLv3.txt', 'CHANGELOG.md', 'README.md', '*.pfx', '*.cjs'], dest: 'dist' }
|
||||
{ src: ['archives', 'backgroundscript.js', 'index.html', 'manifest.json', 'manifest.fx.v3.json', 'manifest.v2.json', 'manifest.webapp', 'manifest.webmanifest', 'package.json', 'LICENSE-GPLv3.txt', 'CHANGELOG.md', 'README.md', '*.pfx', '*.cjs'], dest: 'dist' }
|
||||
],
|
||||
flatten: true
|
||||
})
|
||||
@ -168,7 +168,7 @@ if (process.env.BUILD === 'production') {
|
||||
// Alter remaining lib references
|
||||
.replace(/([\\/])js[\\/]lib/g, '$1js')
|
||||
// Remove unneeded ASM/WASM binaries
|
||||
.replace(/["']www[\\/]js[\\/].*dec.*js["'],\s*/g, '')
|
||||
.replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '')
|
||||
},
|
||||
{
|
||||
src: ['replayWorker.js'],
|
||||
|
@ -69,7 +69,7 @@ var useAppCache = true;
|
||||
/**
|
||||
* A global Boolean that records whether the ReplayWorker is available
|
||||
*/
|
||||
var isReplayWorkerAvailable = false;
|
||||
let isReplayWorkerAvailable = false;
|
||||
|
||||
/**
|
||||
* A regular expression that matches the Content-Types of assets that may be stored in ASSETS_CACHE
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* zimArchiveLoader.js: Functions to search and read ZIM archives.
|
||||
*
|
||||
* Copyright 2015 Mossroy and contributors
|
||||
* Copyright 2015-2024 Mossroy and contributors
|
||||
* Licence GPL v3:
|
||||
*
|
||||
* This file is part of Kiwix.
|
||||
|
Loading…
x
Reference in New Issue
Block a user