File tree Expand file tree Collapse file tree 4 files changed +26
-17
lines changed Expand file tree Collapse file tree 4 files changed +26
-17
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ webpack
4
+
5
+ cd crx
6
+ webpack
Original file line number Diff line number Diff line change
1
+ var path = require ( 'path' ) ;
2
+
3
+ module . exports = {
4
+ entry : {
5
+ content : './content.js'
6
+ } ,
7
+ output : {
8
+ filename : '[name].js' ,
9
+ path : path . join ( __dirname , 'build' )
10
+ } ,
11
+ module : {
12
+ loaders : [ {
13
+ test : / d i s t \/ p a r r o t \. j s $ / ,
14
+ loader : 'raw-loader'
15
+ } ]
16
+ }
17
+ } ;
Original file line number Diff line number Diff line change 5
5
"browser" : " ./dist/parrot.js" ,
6
6
"main" : " ./src/server.js" ,
7
7
"scripts" : {
8
- "build" : " webpack " ,
8
+ "build" : " sh build.sh " ,
9
9
"zip" : " zip -r dist/crx.zip crx" ,
10
10
"prepublish" : " npm run build && npm run zip" ,
11
11
"test" : " jest" ,
Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' ) ;
2
2
3
- module . exports = [ {
3
+ module . exports = {
4
4
entry : {
5
5
parrot : [ './src/browser.js' ]
6
6
} ,
7
7
output : {
8
8
filename : '[name].js' ,
9
9
path : path . join ( __dirname , 'dist' )
10
10
}
11
- } , {
12
- entry : {
13
- content : './crx/content.js'
14
- } ,
15
- output : {
16
- filename : '[name].js' ,
17
- path : path . join ( __dirname , 'crx/build' )
18
- } ,
19
- module : {
20
- loaders : [ {
21
- test : / d i s t \/ p a r r o t \. j s $ / ,
22
- loader : 'raw-loader'
23
- } ]
24
- }
25
- } ] ;
11
+ } ;
You can’t perform that action at this time.
0 commit comments