Skip to content

Specify additional steps needed before precapcopyweb is run #6

@diegodlh

Description

@diegodlh

The readme explains that until ionic-team/capacitor#1892 is integrated in Capacitor 3 one can run precapcopyweb instead of npx cap copy web. However, I understand some steps are required beforehand, which are not specified in the readme file.

  1. Build the web assets, using ionic build for example.
  2. (optional) Manually copy the web assets from the build/ directory to a separate www directory, so www-specific files are not copied from the build directory to android and ios directories. Change the webDir parameter to www in capacitor.config.json, so precapcopyweb knows where to place its www-specific files.
  3. Run precapcopyweb.

Is my understanding correct? Maybe we could add these steps to the readme for newbies like me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions