The current implement generate imports of css and js by modify index.html directly, which means change the source code. Why not just generate a modified index.html in build directory, so that the change of dependencies will not change index.html in the source tree.