File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 36
36
"gsap" : " ^1.18.0" ,
37
37
"gulp" : " ^3.9.0" ,
38
38
"gulp-shell" : " ^0.5.2" ,
39
+ "hard-source-webpack-plugin" : " ^0.3.9" ,
39
40
"howler" : " ^2.0.2" ,
40
41
"json-loader" : " ^0.5.4" ,
41
42
"lodash" : " ^4.17.4" ,
43
+ "node-object-hash" : " ^1.1.5" ,
42
44
"pixi.js" : " ^4.3.4" ,
43
45
"script-loader" : " ^0.7.0" ,
44
46
"tween.js" : " ^16.6.0" ,
45
47
"webpack" : " ^2.2.1" ,
46
- "webpack-dev-server" : " ^1.16.3 "
48
+ "webpack-dev-server" : " ^2.3.0 "
47
49
}
48
50
}
Original file line number Diff line number Diff line change 2
2
3
3
var path = require ( 'path' ) ;
4
4
var webpack = require ( 'webpack' ) ;
5
+ var HardSourcePlugin = require ( 'hard-source-webpack-plugin' ) ;
5
6
6
7
module . exports = {
7
8
context : __dirname ,
8
9
entry : {
9
10
duckhunt : './main.js' ,
10
11
} ,
11
12
output : {
12
- path : 'dist' ,
13
+ path : path . join ( __dirname , 'dist' ) ,
13
14
filename : '[name].js' ,
14
15
} ,
15
16
devtool : 'source-map' ,
@@ -46,5 +47,12 @@ module.exports = {
46
47
port : 8080
47
48
} ,
48
49
plugins : [
50
+ new HardSourcePlugin ( {
51
+ cacheDirectory : '../node_modules/.cache/hardsource/[confighash]' ,
52
+ recordsPath : '../node_modules/.cache/hardsource/[confighash]/records.json' ,
53
+ configHash : function ( webpackConfig ) {
54
+ return require ( 'node-object-hash' ) ( ) . hash ( webpackConfig ) ;
55
+ }
56
+ } )
49
57
] ,
50
58
} ;
You can’t perform that action at this time.
0 commit comments