Dimaz
June 30, 2022, 2:13pm
#1
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?
Dimaz
June 30, 2022, 2:49pm
#3
{
"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
Dimaz
June 30, 2022, 2:55pm
#6
Actually, itβs one more thing. Can I ask it here or should i create another forum page?