I have a styles.css in my Angular 2 application.
It's referred to in app.styles object in .angular-cli.json.
Inside that css I have urls to background images, e.g:
.bg-game {
  background-image: url("assets/app/game_bg_768.jpg");
}
When compiling the app, it seems Angular 2 copies the files from their location into the root folder of the compiled app and adds to its name a random hash.
For instance assets/app/game_bg_768.jpg will be copied to dist/ (compiled app folder) as game_bg_768.023f195663c85e8f0322.jpg.
Then in the styles css compiled by Angular 2, the reference will be changed accordingly:
.bg-game {
  background-image: url("game_bg_768.023f195663c85e8f0322.jpg");
}
I'd like to disable that whole process, only for images that are linked to in CSS, I don't want to disable random hashes generation for the whole app.
The reason behind this - I'm preloading assets/app/game_bg_768.jpg before the game starts, but since a different url is specified in the compiled css, during the game another request is made to load game_bg_768.023f195663c85e8f0322.jpg.
Another reason is, I'd like my images to remain in my assets folder, I don't want them to be duplicated into the root folder of the compiled app.