update docs

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej
2020-11-28 02:31:38 +01:00
parent d13642cfd2
commit 8f11d50915
11 changed files with 151 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
const webpack = require('webpack')
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin')
const fs = require('fs')
const packageJson = fs.readFileSync('./package.json')
const version = JSON.parse(packageJson).version || 0
@@ -15,18 +14,10 @@ module.exports = {
PACKAGE_VERSION: '"' + version + '"'
}
}),
new SWPrecacheWebpackPlugin({
cacheId: 'mailsail',
filename: 'service-worker-cache.js',
staticFileGlobs: ['dist/**/*.{js,css}', '/'],
minify: true,
stripPrefix: 'dist/',
dontCacheBustUrlsMatching: /\.\w{6}\./
}),
]
},
pwa: {
serviceWorker:true,
serviceWorker:false,
iconPaths: {
favicon16: 'img/icons/favicon-16x16.png',
favicon32: 'img/icons/favicon-32x32.png',