Only emit prefetch tags in production mode

There are far too many JS/CSS files to prefetch in development
mode for prefetch to be effective (browsers seem to put a limit on
the number of files they will prefetch).