Add chunk name

Use `loaderUtils` function `interpolateName` for naming chunks
only add the chunk name param if `query.name` is set.