1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

アセットパイプラインとは

Posted at

アセットとは

Website assets refer to all the various components and resources that come together to create a website. These elements play crucial roles in shaping the user experience, performance, and overall functionality of the website. Here’s a breakdown of typical website assets:

ウェブサイトは作成するために組み合わされるすべてのいろんな要素と資源を指す。
それら構成要素はwebサイトのユーザエクスペリエンス、パフォーマンス、機能全体を形成する重要な役割を果たしている。

参考 DeepL

アセットパイプラインとは

Railsのアセットパイプライン(Asset Pipeline)は、JavaScript、CSS、画像ファイルなどの静的アセットを整理・キャッシュ・配信するために設計されたライブラリです。これらのアセットの管理を合理化および最適することで、アプリケーションのパフォーマンスとメンテナンス性を高めます。

Railsのアセットパイプラインは、Propshaftによって管理されている

Propshaftは、基本的なアプリケーションにおけるトランスパイルやバンドルや圧縮が、ブラウザでのサポート強化やネットワーク高速化、HTTP/2機能によって以前ほど重要ではなくなった時代に合わせて構築されています。

Propshaftの機能

Propshaftでは、アセットがすでにブラウザ対応の形式(プレーンCSS、JavaScript、前処理済みのJPEG画像やPNG画像など)になっていることを前提としています。Propshaftの役割は、それらのアセットを効率的に整理・バージョニングしてブラウザに配信することです

感想

また理解したくなったら書く

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?