Make two builds of hassio (#6105)

This commit is contained in:
Paulus Schoutsen
2020-06-05 21:56:56 -07:00
committed by GitHub
parent 7050d19be7
commit e384f76ac1
6 changed files with 33 additions and 26 deletions

View File

@@ -170,15 +170,12 @@ module.exports.config = {
},
hassio({ isProdBuild, latestBuild }) {
if (latestBuild) {
throw new Error("Hass.io does not support latest build!");
}
return {
entry: {
entrypoint: path.resolve(paths.hassio_dir, "src/entrypoint.ts"),
},
outputPath: paths.hassio_output_root,
publicPath: paths.hassio_publicPath,
outputPath: outputPath(paths.hassio_output_root, latestBuild),
publicPath: publicPath(latestBuild, paths.hassio_publicPath),
isProdBuild,
latestBuild,
dontHash: new Set(["entrypoint"]),