The playcanvas webpack plugin (https://github.com/whydoidoit/playcanvas-webpack-plugin) used to work for a while, but it appears like the editor API has changed and it no longer updates existing resources.
All the plugin does is make a POST call with the below details. Can anyone throw some light into any changes that may have affected this ?
let req = request({ uri:
https://playcanvas.com/api/assets, method: 'POST', headers: { "Authorization":
Bearer ${options.bearer}`
}
})
let form = req.form()
form.append("project", "" + options.project)
form.append("name", "" + filename.path)
form.append("asset", "" + filename.assetId)
form.append("data", JSON.stringify({order: filename.priority || 100, scripts: {}}))
form.append("preload", "true")
form.append("file", content, {
filename: filename.path,
contentType: "text/javascript"
})`
Note that this API works in creating new asset files, but doesn’t use the assetId above to update existing resource.