From 5ea803c8a4ec08b08cf351ed992bff55b201887f Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 26 Sep 2021 17:29:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=B8=80=E7=82=B9=E7=82=B9=E5=B0=8F?= =?UTF-8?q?=E7=9A=84=E6=94=B9=E5=8A=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cracorc.js | 2 +- .vscode/launch.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cracorc.js b/.cracorc.js index fbfcfb5..77923e3 100644 --- a/.cracorc.js +++ b/.cracorc.js @@ -2,7 +2,7 @@ const { ServiceRegister } = require("configuration"); module.exports = { devServer: (devServerConfig) => { - devServerConfig.open = false; + devServerConfig.port = "auto"; devServerConfig.onListening = function (devServer) { if (!devServer) { throw new Error("webpack-dev-server is not defined"); diff --git a/.vscode/launch.json b/.vscode/launch.json index c114f8c..73823c4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "name": "chrome", "type": "chrome", "request": "launch", - "url": "http://fennec.localhost/", + "url": "http://fennec.localhost:7070/", "webRoot": "${workspaceFolder}", "userDataDir": ".vscode/chrome" } diff --git a/package.json b/package.json index 613ece3..76e8e21 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "yup": "^0.32.9" }, "scripts": { - "start": "craco start", + "start": "BROWSER=none craco start", "build": "craco build", "test": "craco test", "prestart": "npm run graphql",