File tree Expand file tree Collapse file tree 3 files changed +13
-21
lines changed
Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Original file line number Diff line number Diff line change 136136chrome-extension /background.js
137137chrome-extension /popup.js
138138chrome-extension /options.js
139-
139+ chrome-extension / * .zip
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11import resolve from '@rollup/plugin-node-resolve' ;
22import 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' ;
165const inputs = [ 'background.js' , 'popup.js' , 'options.js' ] ;
176const 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
You can’t perform that action at this time.
0 commit comments