File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 22const path = require ( 'path' )
33const webpack = require ( 'webpack' )
44const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
5+ const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
56const config = require ( './config' )
67const _ = require ( './utils' )
78
@@ -64,7 +65,14 @@ module.exports = {
6465 template : __dirname + '/index.html' ,
6566 filename : _ . outputIndexPath
6667 } ) ,
67- new webpack . LoaderOptionsPlugin ( _ . loadersOptions ( ) )
68+ new webpack . LoaderOptionsPlugin ( _ . loadersOptions ( ) ) ,
69+ new CopyWebpackPlugin ( [
70+ {
71+ from : _ . cwd ( './static' ) ,
72+ // to the roor of dist path
73+ to : './'
74+ }
75+ ] )
6876 ] ,
6977 target : _ . target
7078}
Original file line number Diff line number Diff line change 3030 "babel-preset-es2015" : " ^6.14.0" ,
3131 "babel-preset-stage-1" : " ^6.13.0" ,
3232 "chalk" : " ^1.1.3" ,
33+ "copy-webpack-plugin" : " ^4.0.1" ,
3334 "css-loader" : " ^0.23.1" ,
3435 "cross-env" : " ^2.0.0" ,
3536 {{#electron }}
You can’t perform that action at this time.
0 commit comments