File tree 4 files changed +39
-3
lines changed
4 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' ) ;
2
+ var webpack = require ( 'webpack' ) ;
2
3
3
4
module . exports = {
4
5
mode : 'development' ,
@@ -14,5 +15,13 @@ module.exports = {
14
15
// jquery-ui loads some images
15
16
{ test : / \. ( j p g | p n g | g i f ) $ / , use : 'file-loader' }
16
17
]
17
- }
18
+ } ,
19
+ plugins : [
20
+ new webpack . DefinePlugin ( {
21
+ // Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
22
+ 'process.env' : '{}' ,
23
+ // Needed for various packages using cwd(), like the path polyfill
24
+ process : { cwd : ( ) => '/' }
25
+ } )
26
+ ]
18
27
} ;
Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' ) ;
2
+ var webpack = require ( 'webpack' ) ;
2
3
3
4
module . exports = {
4
5
mode : 'development' ,
@@ -57,5 +58,13 @@ module.exports = {
57
58
}
58
59
}
59
60
]
60
- }
61
+ } ,
62
+ plugins : [
63
+ new webpack . DefinePlugin ( {
64
+ // Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
65
+ 'process.env' : '{}' ,
66
+ // Needed for various packages using cwd(), like the path polyfill
67
+ process : { cwd : ( ) => '/' }
68
+ } )
69
+ ]
61
70
} ;
Original file line number Diff line number Diff line change 1
1
const postcss = require ( 'postcss' ) ;
2
2
var path = require ( 'path' ) ;
3
+ var webpack = require ( 'webpack' ) ;
3
4
4
5
module . exports = {
5
6
mode : 'development' ,
@@ -88,5 +89,13 @@ module.exports = {
88
89
}
89
90
}
90
91
]
91
- }
92
+ } ,
93
+ plugins : [
94
+ new webpack . DefinePlugin ( {
95
+ // Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
96
+ 'process.env' : '{}' ,
97
+ // Needed for various packages using cwd(), like the path polyfill
98
+ process : { cwd : ( ) => '/' }
99
+ } )
100
+ ]
92
101
} ;
Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' ) ;
2
+ var webpack = require ( 'webpack' ) ;
2
3
3
4
module . exports = {
4
5
mode : 'development' ,
@@ -57,4 +58,12 @@ module.exports = {
57
58
} ,
58
59
] ,
59
60
} ,
61
+ plugins : [
62
+ new webpack . DefinePlugin ( {
63
+ // Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
64
+ 'process.env' : '{}' ,
65
+ // Needed for various packages using cwd(), like the path polyfill
66
+ process : { cwd : ( ) => '/' }
67
+ } )
68
+ ]
60
69
} ;
You can’t perform that action at this time.
0 commit comments