Skip to content

Commit

Permalink
Merge pull request #178 from 10up/fix/dev-server
Browse files Browse the repository at this point in the history
fix: dev-server flag
  • Loading branch information
nicholasio authored Mar 29, 2022
2 parents 7ae83fa + 0767fe2 commit b566d80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/toolkit/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ const runWebpack = () => {
const { devServer } = config;

if (devServer) {
const devServerOptions = { ...devServer, open: false };
const server = new WebpackDevServer(compiler);

const server = new WebpackDevServer(compiler, devServerOptions);

server.listen(devServerOptions.port, '127.0.0.1');
server.listen(devServer.port, '127.0.0.1');
} else {
compiler.watch(
{
Expand Down

0 comments on commit b566d80

Please sign in to comment.