Skip to content

Commit b8a83db

Browse files
committed
added icons
1 parent e841996 commit b8a83db

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

ext/src/public/icons/icon128.png

3.2 KB
Loading

ext/src/public/icons/icon16.png

3.2 KB
Loading

ext/src/public/icons/icon48.png

3.2 KB
Loading

ext/src/public/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"service_worker": "background.js",
88
"type": "module"
99
},
10+
"icons": {
11+
"16": "icons/icon16.png",
12+
"48": "icons/icon48.png",
13+
"128": "icons/icon128.png"
14+
},
1015
"web_accessible_resources": [
1116
{
1217
"resources": [

ext/webpack.config.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
// const WebpackObfuscator = require('webpack-obfuscator')
2+
const WebpackObfuscator = require('webpack-obfuscator')
33
const CopyPlugin = require('copy-webpack-plugin')
44

55
module.exports = {
@@ -21,7 +21,7 @@ module.exports = {
2121
splitChunks: false
2222
},
2323
experiments: {
24-
topLevelAwait: true // Needed for async in service worker
24+
topLevelAwait: true
2525
},
2626
target: "webworker",
2727
module: {
@@ -48,16 +48,20 @@ module.exports = {
4848
{
4949
from: path.resolve(__dirname, "src/public/labels.json"),
5050
to: path.resolve(__dirname, "dist/labels.json")
51+
},
52+
{
53+
from: path.resolve(__dirname, "src/public/icons"),
54+
to: path.resolve(__dirname, "dist/icons")
5155
}
5256
]
5357
}
5458
),
55-
// new WebpackObfuscator({
56-
// rotateStringArray: true,
57-
// stringArrayEncoding: ["base64"],
58-
// compact: true,
59-
// selfDefending: true,
60-
// stringArray: true
61-
// })
59+
new WebpackObfuscator({
60+
rotateStringArray: true,
61+
stringArrayEncoding: ["base64"],
62+
compact: true,
63+
selfDefending: true,
64+
stringArray: true
65+
})
6266
]
6367
};

0 commit comments

Comments
 (0)