To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...
Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...
We're always striving towards keeping our website's JavaScript as small as possible. If you're using webpack(er...
TL;DR Most web applications do not require action on this. SameSite=None (old browser default) will continue to work...
When delivering non-public uploaded files (images, documents etc), one has to decide whether and how to do authorization. The...
An alternative of using a multiple assignment for a Regex are named groups. Especially when your Regex becomes more complicates...
Along with a number of other cool new features and performance improvements, Ruby 2.6 added function composition to the Proc...
Some older Node modules rely on window.jQuery to be present. One suggested solution is to use this config in the...
PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...
Tod is a gem for working with daytimes. That's a tuple of (hour, minute second) without a day, month...
To avoid multiple versions of a package, you can manually maintain a resolutions section in your package.json. We recommend you...
When doing some meta-programming magic and you want to do something for all attributes of a class, you may...
This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...
In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',
Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...
While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...
Rails' ActiveSupport::TimeWithZone objects have both a timezone code and offset, e.g. Thu, 28 Mar 2019 16:00:00 CET...
When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...
When you have a powerful machine with many CPU cores, you might run into an error like
You can use .ids on an ActiveRecord scope to pluck all the ids of the relation: # Modern Rails User.where("users.name...
Here is how to make Rome datepicker look like the rest of your Bootstrap 4 application. Rome comes with very...
From at least Rails 4, the ActionView tag helper turns Array values of HTML options into a single space-separated...
Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...
RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...