indent = (str, prefix, firstLine) => {
  if (firstLine) {
    return prefix + str.replace(/\n(?!$)/g, `\n${prefix}`)
  }
  return str.replace(/\n(?!$)/g, `\n${prefix}`)
}
this file copy form webpack-dev-server
and modified for PSWP use.