Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 1767a5b

Browse files
author
Evans
authored
Merge pull request #1671 from remaxjs/feat/web-port
feat: 支持在配置文件中写port来更改web环境启动的端口
2 parents 307a081 + 15d6ddd commit 1767a5b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

e2e/app/remax.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require('path');
22
const less = require('@remax/plugin-less');
33

44
module.exports = {
5+
port: 3001,
56
output: process.env.REMAX_PLATFORM === 'web' ? 'dist/webng' : 'build/src',
67
plugins: [less()],
78
configWebpack({ config }) {

packages/remax-cli/OptionsSchema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"pxToRpx": {
1414
"type": "boolean"
1515
},
16+
"port": {
17+
"type": "number"
18+
},
1619
"cwd": {
1720
"type": "string"
1821
},

0 commit comments

Comments
 (0)