[SOLVED] Problem with making html file

I am trying to make playable ad for Facebook and following the Playcanvas guide for it.
I decided to build it as one html file and completed the instructions on this github page https://github.com/playcanvas/playcanvas-rest-api-tools#setup
But, when i type npm run one-page it creates the zip file.


am i doing something wrong?

Looks like you’ve missed a setting as it’s making a ZIP

Can you post your config.json file with with the private information removed please?

{
    "playcanvas": {
        "project_id": *,
        "name": "*",
        "scenes": [ * ],
        "branch_id": "*",
        "description": "",
        "preload_bundle": false,
        "version": "",
        "release_notes": "",
        "scripts_concatenate": true,
        "scripts_sourcemaps": false,
        "scripts_minify": true,
        "optimize_scene_format": false,
        "engine_version": "1.54.1"
    },
    "csp": {
        "style-src": [
            "'self'",
            "'unsafe-inline'"
        ],
        "connect-src": [
            "'self'",
            "blob:",
            "data:",
            "https://www.google-analytics.com"
        ],
        "patch_preload_bundles": false
    },
    "one_page": {
        "patch_xhr_out": true,
        "inline_game_scripts": true,
        "extern_files": {
            "enabled": true,
            "folder_name": "",
            "external_url_prefix": ""
        },
        "mraid_support": false,
        "snapchat_cta": false,
        "compress_engine": false
    }
}

Here’s your issue, this needs to be set to false to use a single file https://github.com/playcanvas/playcanvas-rest-api-tools#extern-files

1 Like

I see…
Thank you!

Actually, it’s one more thing. Can I ask it here or should i create another forum page?

New thread please