File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 63
63
"in-publish" : " ^2.0.0" ,
64
64
"istanbul" : " ^0.4.3" ,
65
65
"jsdoc" : " ^3.4.0" ,
66
+ "json" : " ^9.0.3" ,
66
67
"karma" : " ^0.13.22" ,
67
68
"karma-babel-preprocessor" : " ^6.0.1" ,
68
69
"karma-chrome-launcher" : " ^0.2.3" ,
Original file line number Diff line number Diff line change
1
+ var path = require ( 'path' )
2
+ var webpack = require ( 'webpack' )
3
+ module . exports = {
4
+ context : __dirname ,
5
+ entry : './browser' ,
6
+ output : {
7
+ path : path . join ( __dirname , 'browser-dist' ) ,
8
+ filename : 'contentful-management.js' ,
9
+ library : 'contentful-management'
10
+ } ,
11
+ module : {
12
+ loaders : [
13
+ {
14
+ test : / \. j s ? $ / ,
15
+ exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s | d i s t ) / ,
16
+ loader : 'babel'
17
+ } ,
18
+ {
19
+ test : / \. j s o n ? $ / ,
20
+ loader : 'json'
21
+ }
22
+ ]
23
+ } ,
24
+ plugins : [
25
+ new webpack . NormalModuleReplacementPlugin ( / \. \/ v e n d o r - n o d e \/ a x i o s / g, './vendor-browser/axios.js' )
26
+ ]
27
+ }
You can’t perform that action at this time.
0 commit comments