Skip to content

Commit

Permalink
fix: weex dev port
Browse files Browse the repository at this point in the history
  • Loading branch information
sky committed Mar 29, 2019
1 parent 6c5f951 commit f4df9b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/weex.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
'use strict';
const EasyWebpack = require('easywebpack');
const merge = EasyWebpack.merge;
const WebpackBaseBuilder = require('./base');
class WebpackWeexBuilder extends WebpackBaseBuilder(EasyWebpack.WebpackClientBuilder) {
constructor(config) {
super(config);
constructor(config = {}) {
const port = config.port ? config.port + 1 : 9001;
super(merge({ port }, config));
this.type = WebpackWeexBuilder.TYPE;
this.setPrefix('weex');
this.setExternals(['vue']);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easywebpack-weex",
"version": "3.6.0",
"version": "3.6.1",
"description": "基于 easywebpack 的 Weex Native 和 Weex Web 打包构建解决方案",
"keywords": [
"webpack",
Expand Down

0 comments on commit f4df9b2

Please sign in to comment.