File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 17
17
"babel-loader" : " ^6.0.0" ,
18
18
"babel-preset-es2015" : " ^6.0.0" ,
19
19
"chalk" : " ^1.1.3" ,
20
+ "copy-webpack-plugin" : " ^3.0.1" ,
20
21
"cross-env" : " ^1.0.6" ,
21
22
"css-loader" : " ^0.23.1" ,
22
23
"file-loader" : " ^0.8.4" ,
Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' )
2
2
var webpack = require ( 'webpack' )
3
+ var cp = require ( 'copy-webpack-plugin' )
3
4
4
5
module . exports = {
5
6
entry : './app/site/src/main.js' ,
@@ -35,7 +36,16 @@ module.exports = {
35
36
historyApiFallback : true ,
36
37
noInfo : true
37
38
} ,
38
- devtool : '#eval-source-map'
39
+ devtool : '#eval-source-map' ,
40
+ plugins : [
41
+ new cp ( [
42
+ {
43
+ context : path . join ( __dirname , 'app/site/src/assets' ) ,
44
+ from : 'logo.png' ,
45
+ to : path . join ( __dirname , 'app/site/dist' ) ,
46
+ }
47
+ ] )
48
+ ]
39
49
}
40
50
41
51
if ( process . env . NODE_ENV === 'production' ) {
You can’t perform that action at this time.
0 commit comments