You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
Currently, the Theia webpack configuration file, as well as the main HTML file that loads the packaged JS bundle file, are generated during Theia build.
In order to provide enable bundle caching in a way that can be customized by the theia distributrion packager, we should introduce a way to customize:
the webpack configuration, at least providing an option to enable a typical caching-compatible configuration (see https://webpack.js.org/guides/caching/)
the generated HTML using the HtmlWebpackPlugin, in order to let the user provide its own template during the theia build call, as well as additional html template parameters through command line arguments.
The result of this work should be to have the related PR merged in the upstream Theia repository.
The text was updated successfully, but these errors were encountered:
a custom Webpack configuration that imports the default generated Theia webpack configuration and introduces CDN-related optimizations / changes
a custom HTML template used in the custom webpack configuration. For now this custom HTML template duplicates a bit the content of the default theia generated HTML,
a custom JS file overrides the vs/loader.js monaco requireJS loader, in order to override the requireJS configuration.
Through it currently works well, I propose to keep this issue opened to track what parts of this work we would be able to propose in Theia upstream, or what change in Theia upstream would make our CDN work cleaner / easier to maintain, especially for the HTML template part (to avoid future syncs of duplicated code) and the vsCode requireJS overriding, which requires renaming files in the generated webpack package.
However, I think we can decrease the priority of this issue, and possibly wait for the CDN support to be used a while, and finalized. When it has reached its final shape, this issue will come back.
Currently, the Theia webpack configuration file, as well as the main HTML file that loads the packaged JS bundle file, are generated during Theia build.
In order to provide enable bundle caching in a way that can be customized by the theia distributrion packager, we should introduce a way to customize:
theia build
call, as well as additional html template parameters through command line arguments.The result of this work should be to have the related PR merged in the upstream Theia repository.
The text was updated successfully, but these errors were encountered: