Skip to content

Commit

Permalink
Don't use ES5 build for dev server (#19731)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Feb 8, 2024
1 parent 23cbecb commit c3b2ebf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build-scripts/gulp/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ gulp.task("webpack-prod-app", () =>

gulp.task("webpack-dev-server-demo", () =>
runDevServer({
compiler: webpack(bothBuilds(createDemoConfig, { isProdBuild: false })),
compiler: webpack(
createDemoConfig({ isProdBuild: false, latestBuild: true })
),
contentBase: paths.demo_output_root,
port: 8090,
})
Expand All @@ -131,7 +133,9 @@ gulp.task("webpack-prod-demo", () =>

gulp.task("webpack-dev-server-cast", () =>
runDevServer({
compiler: webpack(bothBuilds(createCastConfig, { isProdBuild: false })),
compiler: webpack(
createCastConfig({ isProdBuild: false, latestBuild: true })
),
contentBase: paths.cast_output_root,
port: 8080,
// Accessible from the network, because that's how Cast hits it.
Expand Down Expand Up @@ -174,8 +178,9 @@ gulp.task("webpack-prod-hassio", () =>

gulp.task("webpack-dev-server-gallery", () =>
runDevServer({
// We don't use the es5 build, but the dev server will fuck up the publicPath if we don't
compiler: webpack(bothBuilds(createGalleryConfig, { isProdBuild: false })),
compiler: webpack(
createGalleryConfig({ isProdBuild: false, latestBuild: true })
),
contentBase: paths.gallery_output_root,
port: 8100,
listenHost: "0.0.0.0",
Expand Down

0 comments on commit c3b2ebf

Please sign in to comment.