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

Commit

Permalink
feat: 支持在配置文件中写port来更改web环境启动的端口
Browse files Browse the repository at this point in the history
  • Loading branch information
sydeEvans committed Aug 5, 2021
1 parent 3d06f6c commit 15d6ddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2e/app/remax.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const less = require('@remax/plugin-less');

module.exports = {
port: 3001,
output: process.env.REMAX_PLATFORM === 'web' ? 'dist/webng' : 'build/src',
plugins: [less()],
configWebpack({ config }) {
Expand Down
3 changes: 3 additions & 0 deletions packages/remax-cli/OptionsSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"pxToRpx": {
"type": "boolean"
},
"port": {
"type": "number"
},
"cwd": {
"type": "string"
},
Expand Down

0 comments on commit 15d6ddd

Please sign in to comment.