Commit 279d704f authored by Christopher Chedeau's avatar Christopher Chedeau
Browse files

.

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #
parent b29572ff
Showing with 8 additions and 0 deletions
+8 -0
...@@ -12,6 +12,7 @@ process.env.NODE_ENV = 'development'; ...@@ -12,6 +12,7 @@ process.env.NODE_ENV = 'development';
var webpack = require('webpack'); var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server'); var WebpackDevServer = require('webpack-dev-server');
var config = require('../webpack.config.dev'); var config = require('../webpack.config.dev');
var execSync = require('child_process').execSync;
new WebpackDevServer(webpack(config), { new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath, publicPath: config.output.publicPath,
...@@ -37,4 +38,11 @@ new WebpackDevServer(webpack(config), { ...@@ -37,4 +38,11 @@ new WebpackDevServer(webpack(config), {
return console.log(err); return console.log(err);
} }
console.log('Listening at http://localhost:3000/'); console.log('Listening at http://localhost:3000/');
try {
execSync('ps cax | grep "Google Chrome"');
execSync('open -a "Google Chrome" http://localhost:3000/');
} catch(e) {
// Do nothing if Chrome cannot be opened
}
}); });
Supports Markdown
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