File tree 3 files changed +27
-27
lines changed 3 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 1
- const path = require ( 'path' ) ;
1
+ const path = require ( 'path' )
2
2
3
- const PACKAGE = require ( './package.json' ) ;
4
- const version = PACKAGE . version ;
3
+ const PACKAGE = require ( './package.json' )
4
+ const version = PACKAGE . version
5
5
6
6
module . exports = {
7
7
entry : './src/lib.js' ,
@@ -14,15 +14,15 @@ module.exports = {
14
14
include : path . resolve ( process . cwd ( ) , 'src' ) ,
15
15
enforce : 'pre' ,
16
16
options : {
17
- fix : true ,
18
- } ,
19
- } ,
17
+ fix : true
18
+ }
19
+ }
20
20
]
21
21
} ,
22
22
output : {
23
23
filename : `blocklike-${ version } .min.js` ,
24
24
path : path . resolve ( __dirname , 'dist' ) ,
25
- library : 'blockLike' ,
25
+ library : 'blockLike'
26
26
} ,
27
- watch : false ,
28
- } ;
27
+ watch : false
28
+ }
Original file line number Diff line number Diff line change 1
- const path = require ( 'path' ) ;
1
+ const path = require ( 'path' )
2
2
3
- const PACKAGE = require ( './package.json' ) ;
4
- const version = PACKAGE . version ;
3
+ const PACKAGE = require ( './package.json' )
4
+ const version = PACKAGE . version
5
5
6
6
module . exports = {
7
7
entry : './src/lib.js' ,
@@ -14,21 +14,21 @@ module.exports = {
14
14
include : path . resolve ( process . cwd ( ) , 'src' ) ,
15
15
enforce : 'pre' ,
16
16
options : {
17
- fix : true ,
18
- } ,
19
- } ,
17
+ fix : true
18
+ }
19
+ }
20
20
]
21
21
} ,
22
22
devtool : 'inline-source-map' ,
23
23
output : {
24
24
filename : `blocklike-${ version } .js` ,
25
25
path : path . resolve ( __dirname , 'dist' ) ,
26
- library : 'blockLike' ,
26
+ library : 'blockLike'
27
27
} ,
28
28
devServer : {
29
- static : path . join ( __dirname , "" ) ,
29
+ static : path . join ( __dirname , '' ) ,
30
30
compress : true ,
31
- host : '0.0.0.0' , // your ip address
31
+ host : '0.0.0.0' , // your ip address
32
32
port : 9000
33
33
}
34
- } ;
34
+ }
Original file line number Diff line number Diff line change 1
- const path = require ( 'path' ) ;
2
- const glob = require ( 'glob' ) ;
1
+ const path = require ( 'path' )
2
+ const glob = require ( 'glob' )
3
3
4
- const PACKAGE = require ( './package.json' ) ;
5
- const version = PACKAGE . version ;
4
+ const PACKAGE = require ( './package.json' )
5
+ const version = PACKAGE . version
6
6
7
7
module . exports = {
8
- entry : { ' test' : glob . sync ( './test/*.test.js' ) } ,
8
+ entry : { test : glob . sync ( './test/*.test.js' ) } ,
9
9
mode : 'development' ,
10
10
devtool : 'inline-source-map' ,
11
11
output : {
12
- filename : ` ~~out.js` ,
13
- path : path . resolve ( __dirname , 'test' ) ,
12
+ filename : ' ~~out.js' ,
13
+ path : path . resolve ( __dirname , 'test' )
14
14
}
15
- } ;
15
+ }
You can’t perform that action at this time.
0 commit comments