File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import fs from 'fs';
4
4
import ws from 'ws' ;
5
5
import http from 'http' ;
6
6
import https from 'https' ;
7
+ import path from 'path' ;
8
+
9
+ app . use ( express . static ( path . join ( process . cwd ( ) , "dist" ) ) ) ;
7
10
8
11
export default class CallHandler {
9
12
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin')
4
4
var HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
5
5
6
6
module . exports = {
7
- devtool : 'eval' , // source-map
7
+ devtool : 'source-map' ,
8
8
entry : {
9
9
main : './src/index.js'
10
10
} ,
@@ -49,8 +49,8 @@ module.exports = {
49
49
template : './src/index.html' ,
50
50
inject : true ,
51
51
minify : {
52
- removeComments : true , //移除HTML中的注释
53
- collapseWhitespace : false //删除空白符与换行符
52
+ removeComments : true ,
53
+ collapseWhitespace : false
54
54
}
55
55
} )
56
56
] ,
You can’t perform that action at this time.
0 commit comments