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';
44import ws from 'ws' ;
55import http from 'http' ;
66import https from 'https' ;
7+ import path from 'path' ;
8+
9+ app . use ( express . static ( path . join ( process . cwd ( ) , "dist" ) ) ) ;
710
811export default class CallHandler {
912
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin')
44var HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
55
66module . 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 ] ,
You can’t perform that action at this time.
0 commit comments