Files
danbooru/config/webpack
evazion 206a4b5de5 docker: avoid rebuilding CSS/JS assets on every commit.
Restructure the Dockerfile and the CSS/JS files so that we only rebuild
the CSS and JS when they change, not on every commit.

Before it took several minutes to rebuild the Docker image after every
commit, even when the JS/CSS files didn't change. This also made pulling
images slower.

This requires refactoring the CSS and JS to not use embedded Ruby (ERB)
templates, since this made the CSS and JS dependent on the Ruby
codebase, which is why we had to rebuild the assets after every Ruby
change.
2021-10-13 02:48:30 -05:00
..
2021-01-28 00:22:49 -06:00
2021-01-28 00:22:49 -06:00

Webpack

This directory contains configuration for Webpack. Webpack is used to bundle Javascript and CSS assets in production. In Rails, Webpack is wrapped by Webpacker, a layer that tries to provide sensible defaults for Webpack.

See also

External links