File tree 3 files changed +29
-10
lines changed
3 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 13
13
},
14
14
"scripts" : {
15
15
"build" : " webpack --config webpack.config.js" ,
16
+ "local" : " webpack --config webpack.dev.config.js" ,
16
17
"test" : " ava \" **/*.test.js\" " ,
17
18
"watchtest" : " ava \" **/*.test.js\" --watch"
18
19
},
Original file line number Diff line number Diff line change 1
- const webpack = require ( 'webpack' )
2
1
const path = require ( 'path' )
3
2
4
3
module . exports = {
5
- mode : 'development ' ,
4
+ mode : 'production ' ,
6
5
entry : {
7
6
index : "./src/index.js"
8
7
} ,
@@ -12,15 +11,8 @@ module.exports = {
12
11
library : "orbarr"
13
12
} ,
14
13
module : {
15
- rules : [
16
- {
17
- test : / \. j s $ / ,
18
- enforce : 'pre' ,
19
- use : [ "source-map-loader" ] ,
20
- }
21
- ] ,
14
+ rules : [ ] ,
22
15
} ,
23
- devtool : 'inline-source-map' ,
24
16
resolve : {
25
17
modules : [ 'node_modules' ]
26
18
} ,
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' )
2
+
3
+ module . exports = {
4
+ mode : 'development' ,
5
+ entry : {
6
+ index : "./src/index.js"
7
+ } ,
8
+ output : {
9
+ filename : "[name].js" ,
10
+ path : path . join ( __dirname , 'dist' ) ,
11
+ library : "orbarr"
12
+ } ,
13
+ module : {
14
+ rules : [
15
+ {
16
+ test : / \. j s $ / ,
17
+ enforce : 'pre' ,
18
+ use : [ "source-map-loader" ] ,
19
+ }
20
+ ] ,
21
+ } ,
22
+ devtool : 'inline-source-map' ,
23
+ resolve : {
24
+ modules : [ 'node_modules' ]
25
+ } ,
26
+ }
You can’t perform that action at this time.
0 commit comments