Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit 9adbe21

Browse files
author
Nickwasused
committed
fix service worker
1 parent 9c5e155 commit 9adbe21

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

build/webpack.base.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const path = require('path')
2-
const webpack = require('webpack')
32
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
43
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
54
const { VueLoaderPlugin } = require('vue-loader')

build/webpack.client.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if (process.env.NODE_ENV === 'production') {
3131
// auto generate service worker
3232
new GenerateSW({
3333
cacheId: 'vue-hn',
34-
swDest: './dist/service-worker.js',
34+
swDest: './service-worker.js',
3535
exclude: [/./, /\.map$/, /\.json$/],
3636
runtimeCaching: [
3737
{

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"type": "image/png"
4949
}
5050
],
51-
"theme_color": "#f60",
52-
"background_color": "#f60",
51+
"theme_color": "#ff6600",
52+
"background_color": "#ff6600",
5353
"display": "standalone"
5454
}

0 commit comments

Comments
 (0)