Revert "client: initial service worker support"

This reverts commit 3c015c6f09.

Service worker does not work well with HTTP basic auth. Plus,
some caching policy problems need to be figured out first.
This commit is contained in:
Jesse Chan
2020-12-14 22:07:21 +08:00
parent cc469bdcfd
commit ac1ffdb4a9
4 changed files with 0 additions and 1160 deletions
-2
View File
@@ -6,7 +6,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const WebpackBar = require('webpackbar');
const WorkboxPlugin = require('workbox-webpack-plugin');
const paths = require('../../shared/config/paths');
// Assert this just to be safe.
@@ -152,7 +151,6 @@ module.exports = {
new webpack.optimize.MinChunkSizePlugin({
minChunkSize: 10000,
}),
new WorkboxPlugin.GenerateSW(),
new WebpackBar(),
],
optimization: {
-5
View File
@@ -13,11 +13,6 @@
<script type="text/javascript">
var _jipt = [];
_jipt.push(['project', 'flood']);
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('service-worker.js').catch(() => undefined);
});
}
</script>
<title>Flood</title>
</head>
-1152
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -208,7 +208,6 @@
"webpack": "^5.10.1",
"webpack-dev-server": "^4.0.0-beta.0",
"webpackbar": "^5.0.0-3",
"workbox-webpack-plugin": "^6.0.2",
"xmlrpc": "^1.3.2",
"yargs": "^16.2.0",
"zod": "^1.11.11"