Skip to content

Commit 70f9430

Browse files
committed
Update.
1 parent 39c7522 commit 70f9430

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

server/Server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import fs from 'fs';
44
import ws from 'ws';
55
import http from 'http';
66
import https from 'https';
7+
import path from 'path';
8+
9+
app.use(express.static(path.join(process.cwd(),"dist")));
710

811
export default class CallHandler {
912

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin')
44
var HtmlWebpackPlugin = require('html-webpack-plugin')
55

66
module.exports = {
7-
devtool: 'eval', //source-map
7+
devtool: 'source-map',
88
entry: {
99
main: './src/index.js'
1010
},
@@ -49,8 +49,8 @@ module.exports = {
4949
template: './src/index.html',
5050
inject: true,
5151
minify: {
52-
removeComments: true, //移除HTML中的注释
53-
collapseWhitespace: false //删除空白符与换行符
52+
removeComments: true,
53+
collapseWhitespace: false
5454
}
5555
})
5656
],

0 commit comments

Comments
 (0)