From da8b8a099685638f49c6379f9e03615a549a502a Mon Sep 17 00:00:00 2001 From: Matt Netkow Date: Mon, 22 Jun 2020 15:59:59 -0500 Subject: [PATCH] docs(cli): clarify "missing web assets directory" error message (#3131) --- cli/src/common.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/src/common.ts b/cli/src/common.ts index bfb3b05ffb..078a9c655d 100644 --- a/cli/src/common.ts +++ b/cli/src/common.ts @@ -29,9 +29,10 @@ export async function checkWebDir(config: Config): Promise { } if (!await existsAsync(config.app.webDirAbs)) { return `Capacitor could not find the web assets directory "${config.app.webDirAbs}". - Please create it, and make sure it has an index.html file. You can change - the path of this directory in capacitor.config.json. - More info: https://capacitor.ionicframework.com/docs/basics/configuring-your-app`; + Please create it and make sure it has an index.html file. You can change + the path of this directory in capacitor.config.json (webDir option). + You may need to compile the web assets for your app (typically 'npm run build'). + More info: https://capacitor.ionicframework.com/docs/basics/building-your-app`; } if (!await existsAsync(join(config.app.webDirAbs, 'index.html'))) {