Commit 2b1e9cf8 authored by wildfirecode's avatar wildfirecode

1

parent a8d8ef69
...@@ -46,6 +46,7 @@ var serverStart = opts => { ...@@ -46,6 +46,7 @@ var serverStart = opts => {
module.exports = { module.exports = {
close: () => { }, close: () => { },
start: opts => { start: opts => {
console.log(opts)
serverStart(opts); serverStart(opts);
} }
}; };
\ No newline at end of file
...@@ -18,7 +18,7 @@ let config = opts => { ...@@ -18,7 +18,7 @@ let config = opts => {
plugins: [ plugins: [
new MockWebpackPlugin({ new MockWebpackPlugin({
config: mockConfig, config: mockConfig,
port: 3000 port: opts.mockPort
}) })
] ]
}); });
......
...@@ -7,6 +7,7 @@ class DuibaGameBuild { ...@@ -7,6 +7,7 @@ class DuibaGameBuild {
constructor(config) { constructor(config) {
let defaults = { let defaults = {
devPort: 8081, devPort: 8081,
mockPort:3000,
devServerWatchOptions: {}, devServerWatchOptions: {},
proxy: { proxy: {
'/customActivity/*': 'http://localhost:3000', '/customActivity/*': 'http://localhost:3000',
......
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
"webpack-dev-server": "^3.1.0", "webpack-dev-server": "^3.1.0",
"webpack-merge": "^4.1.2" "webpack-merge": "^4.1.2"
}, },
"version": "0.0.14" "version": "0.0.16"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment