scripts/inline-template-and-style.js
function inlineStyle(fileContent, filePath) {
  return fileContent.replace(/styleUrls\s*:\s*\[(.+)\]/g, (_match, templateUrl) => {
    let styleContent = ''
    const styleList = templateUrl.replace(/'|\s/g, '').split(',')
    styleList.forEach(s => {
      const stylePath = path.join(path.dirname(filePath), s)
      styleContent += loadResourceFile(stylePath)
    })
    return `styles: \[\`${styleContent}\`\]`
  })
}
function inlineStyle(fileContent, filePath) {
  return fileContent.replace(/styleUrls\s*:\s*\[(.+)\]/g, (_match, templateUrl) => {
    let styleContent = ''
    const styleList = templateUrl.replace(/'|\s/g, '').split(',')
    styleList.forEach(s => {
      const stylePath = path.join(path.dirname(filePath), s)
      styleContent += loadResourceFile(stylePath)
    })
    return `styles: \[\`${styleContent}\`\]`
  })
}
useless now