Javascript

All posts tagged Javascript

How to manage static images with Symfony’s Webpack Encore

Any web project has basically 4 kind of places where images reside:

  1. In the CSS;
  2. In a font file (think at icons);
  3. In the cloud (think at AWS S3);
  4. In the project itself as static files.

Symfony’s Webpack Encore is great to manage the first two places as it is able to manage the images referenced in the CSSes and to manage fonts (as they are handled as CSSes are).

The third group of images, the ones in the cloud, have not to be managed by Webpack but by another bundle like LiipImagineBundle.

So we are left only with the fourth group: the static images.

read more
AerendirHow to manage static images with Symfony’s Webpack Encore