Skip to content

Commit

Permalink
Replace dependency on opn.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 7, 2018
1 parent 5a1eb27 commit c4d3ed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"less-loader": "^4.1.0",
"loading-cli": "^1.0.6",
"mini-css-extract-plugin": "^0.4.0",
"open-browsers": "^1.0.3",
"optimize-css-assets-webpack-plugin": "^4.0.0",
"postcss-flexbugs-fixes": "^3.2.0",
"postcss-loader": "^2.0.9",
"progress-bar-webpack-plugin": "^1.11.0",
"raw-content-replace-loader": "^1.0.1",
"raw-extend-loader": "^1.0.5",
"raw-tree-replace-loader": "^1.1.0",
"rdoc-dev-utils": "^1.0.2",
"react": "^16.3.2",
"react-document-title": "^2.0.3",
"react-dom": "^16.3.2",
Expand Down
4 changes: 2 additions & 2 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const opn = require('opn');
const openBrowsers = require('openBrowser');
const detect = require('detect-port');
const conf = require('./conf/webpack.config.dev');
const createDevServerConfig = require('./conf/webpack.config.server');
Expand All @@ -26,7 +26,7 @@ module.exports = function server(cmd) {
return console.log(err); // eslint-disable-line
}
// open browser
opn(`http://${HOST}:${DEFAULT_PORT}`);
openBrowsers(`http://${HOST}:${DEFAULT_PORT}`);
});
}).catch((err) => {
console.log(err); // eslint-disable-line
Expand Down

0 comments on commit c4d3ed0

Please sign in to comment.