1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 10:08:52 +08:00

add manifest and offline support #12

This commit is contained in:
lana-k
2021-04-29 16:19:25 +02:00
parent 92022f9083
commit 9b6aa3d6c7
10 changed files with 2954 additions and 1082 deletions

View File

@@ -1,4 +1,5 @@
const CopyPlugin = require('copy-webpack-plugin')
const WorkboxPlugin = require('workbox-webpack-plugin')
module.exports = {
publicPath: '',
@@ -9,7 +10,12 @@ module.exports = {
// It is important that we do not change its name, and that it is in the same folder as the js
{ from: 'node_modules/sql.js/dist/sql-wasm.wasm', to: 'js/' },
{ from: 'LICENSE', to: './' }
])
]),
new WorkboxPlugin.GenerateSW({
clientsClaim: true,
skipWaiting: false,
maximumFileSizeToCacheInBytes: 40000000
})
]
},
chainWebpack: config => {