mirror of
https://github.com/zoriya/flood.git
synced 2026-06-06 12:02:13 +00:00
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:
@@ -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: {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Generated
-1152
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user