question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automating bundling of JS/CSS files

See original GitHub issue

We 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rockstardevcommented, Mar 3, 2018
1reaction
NicolasDoriercommented, Mar 3, 2018

should we close this now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Automatically Bundle Your CSS and Javascript in ...
This class is going to allow us to define “groups” of CSS and Javascript files from your web project that you want to...
Read more >
Bundling CSS with webpack Loaders
In the last lesson, we bundled our JavaScript files with webpack. ... In this lesson, we'll learn how to bundle our CSS and...
Read more >
Automating JavaScript AMD bundling and minification in ...
I've been doing research to try and find the best practice of bundling and minifying my JS files (possibly 100+ per page) in...
Read more >
Simplify Front-end JS and CSS Optimization With Gulp
What we really want is to automate bundling and include it in the build phase ... new files: public/build/js/bundle.js and public/build/css/stylesheet.css .
Read more >
Frontend Bundling (CSS/JS/etc.) - Bridgetown.rb
Files to be processed by esbuild or Webpack are placed in the top-level frontend folder within your site root. This folder is entirely...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found