mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(cli): support custom devServer port
This commit is contained in:
parent
64cce6b0bf
commit
96991fd892
@ -13,7 +13,7 @@ function watch() {
|
|||||||
|
|
||||||
getPort(
|
getPort(
|
||||||
{
|
{
|
||||||
port: 8080
|
port: siteDevConfig.devServer!.port
|
||||||
},
|
},
|
||||||
(err, port) => {
|
(err, port) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -44,6 +44,7 @@ export const siteDevBaseConfig = merge(baseConfig as any, {
|
|||||||
'site-mobile': [join(__dirname, '../../site/mobile/main.js')]
|
'site-mobile': [join(__dirname, '../../site/mobile/main.js')]
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
|
port: 8080,
|
||||||
quiet: true,
|
quiet: true,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
stats: 'errors-only',
|
stats: 'errors-only',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user