Is it possible in Angular or via help of a custom-webpack plugin to transform a JSON asset before copying it to the assets folder. I have a JSON file in which I would like to transform some values before placing it into the assets folder. I have tried to use the CopyWebpackPlugin but it seems that it is not applicable to assets.
What I want to do is take a JSON from the src, replace some values in that JSON during compilation and then put it into the target location under dist/<...>/assets.