完成下载文件的前后调试
This commit is contained in:
@@ -10,7 +10,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
|
||||
const portfinder = require('portfinder')
|
||||
|
||||
const HOST = process.env.HOST
|
||||
const PORT = process.env.PORT && Number(process.env.PORT)
|
||||
|
||||
const devWebpackConfig = merge(baseWebpackConfig, {
|
||||
@@ -31,9 +30,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
||||
hot: true,
|
||||
contentBase: false, // since we use CopyWebpackPlugin.
|
||||
compress: true,
|
||||
host: HOST || config.dev.host,
|
||||
// host:'127.0.0.1',
|
||||
port: PORT || config.dev.port,
|
||||
host: config.dev.host,
|
||||
port: config.dev.port,
|
||||
open: config.dev.autoOpenBrowser,
|
||||
overlay: config.dev.errorOverlay
|
||||
? { warnings: false, errors: true }
|
||||
|
||||
Reference in New Issue
Block a user