mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
feat(cli): support custom devServer port
This commit is contained in:
@@ -13,7 +13,7 @@ function watch() {
|
||||
|
||||
getPort(
|
||||
{
|
||||
port: 8080
|
||||
port: siteDevConfig.devServer!.port
|
||||
},
|
||||
(err, port) => {
|
||||
if (err) {
|
||||
|
@@ -44,6 +44,7 @@ export const siteDevBaseConfig = merge(baseConfig as any, {
|
||||
'site-mobile': [join(__dirname, '../../site/mobile/main.js')]
|
||||
},
|
||||
devServer: {
|
||||
port: 8080,
|
||||
quiet: true,
|
||||
host: '0.0.0.0',
|
||||
stats: 'errors-only',
|
||||
|
Reference in New Issue
Block a user