> For the complete documentation index, see [llms.txt](https://kelby.gitbook.io/rails-beginner-s-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kelby.gitbook.io/rails-beginner-s-guide/webpacker.md).

# 前端 Webpacker

vs Sprockets

Sprockets - 自己独有的，旧的

Webpacker - 通用的，新的

New Rails apps are configured to use webpack for JavaScript and Sprockets for CSS

静态资源：

* JS
* CSS
* 图片
* 字体
