Automating bundling of JS/CSS files
See original GitHub issueWe are currently not making distinction between different environments - development, staging, production. As described in #39 resources are linked statically… we link JS/CSS directly and that stays same between environments.
Ideally we want system where in development we would link full JS/CSS files which would help during development and debugging… but once project is deployed to production there should be automatic process of minimization and bundling of all referenced files so we ideally serve just one JS and one CSS file.
This way we will also resolve issue of versioning - if certain JS/CSS file is updated, server should automatically create new bundle with new version string (i.e. http://btcpay-server-url.com/renderjs?version_guid
). That way you also prevent confusion with client browsers who’ll always have latest versions of JS/CSS files (without requiring clients to CTRL+Refresh your page). See this url for example: https://stackoverflow.com/questions/16395595/mvc4-bundling-version-control
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Top GitHub Comments
Implemented: https://github.com/btcpayserver/btcpayserver/pull/48
should we close this now?