Skip to content

Commit

Permalink
docs(cli): clarify "missing web assets directory" error message (#3131)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNetkow committed Jun 22, 2020
1 parent d104e9a commit da8b8a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cli/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export async function checkWebDir(config: Config): Promise<string | null> {
}
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'))) {
Expand Down

0 comments on commit da8b8a0

Please sign in to comment.