Skip to content

Commit 23cacab

Browse files
committed
fix manifest
1 parent 6f7a57b commit 23cacab

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ dist
136136
chrome-extension/background.js
137137
chrome-extension/popup.js
138138
chrome-extension/options.js
139-
139+
chrome-extension/*.zip

chrome-extension/manifest.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,5 @@
2727
},
2828
"default_title": "Quick Add",
2929
"default_popup": "popup.html"
30-
},
31-
"web_accessible_resources" [
32-
{
33-
"resources": ["popout.png"]
34-
}
35-
]
30+
}
3631
}

rollup.config.mjs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
import resolve from '@rollup/plugin-node-resolve';
22
import commonjs from '@rollup/plugin-commonjs';
33

4-
const output = {
5-
format: 'iife',
6-
dir: 'chrome-extension',
7-
};
8-
9-
const plugins = [
10-
resolve(),
11-
commonjs({
12-
include: ['node_modules/**',]
13-
}),
14-
];
15-
4+
const output_dir = 'chrome-extension';
165
const inputs = ['background.js', 'popup.js', 'options.js'];
176
const config = inputs.map(i => {
187
return {
198
input: `src/${i}`,
20-
output,
21-
plugins
9+
output: {
10+
format: 'cjs',
11+
dir: output_dir,
12+
},
13+
plugins: [
14+
resolve(),
15+
commonjs({
16+
include: ['node_modules/**',]
17+
}),
18+
],
2219
};
2320
});
2421

0 commit comments

Comments
 (0)