How to use 'url-loader' with angular-cli compiler

Discussão em 'Angular' iniciado por Guilherme Lopes, Novembro 24, 2024.

  1. Usually I run my projects and build my SASS files with WebPack, which I have the rules in way that generates a CSS files with url-loader converting all url(...) inside that sass file to a dataURI.

    so background: url('my-file.svg') would be converted to background url('data:image/svg+xml;base64,SoMeGiBbeRiShHeRe')

    I'd like to know if there is a way to achieve this with the ng compiler? I researched a bit on this, and the way to do it was to use ng eject but that option is no longer available.

    Continue reading...

Compartilhe esta Página