If you would like to export a Playcanvas build and add/integrate it to your offline project, you will have to also rebuild part of the Playcanvas loader. That is responsible of loading the scene/assets/scripts in place.
Personally, usually I go the other way around. I code locally on my IDE (using webpack/npm/typescript) and have the bundled script automatically uploaded to my Playcanvas editor.
There are some unofficial projects that can help you do that: