changing the way both main and cross axis are calculated
testing if file exists before adding it as an entry for webpack