Stays compatible with 2.x series, thanks to an unified codebase.
Set the ASSET_URL to be relative to the 'theme/' url, which requires to use {{ SITEURL }}/{{ ASSET_URL }} in the template and make it works with both relative and absolute urls.
This allows to have the assets_environment in all generators.