Skip to content

Commit d992401

Browse files
committed
UX: Reduce JS size by loading hls.light.min.js instead of hls.js photoprism#4778
hls.light.js is a smaller version of hls.js that does not include support for alternate audio, subtitles, CMCD, EME (DRM), and variable substitution. Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent 0ddc179 commit d992401

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ const config = {
8181
modules: isCustom ? [PATHS.custom, PATHS.src, PATHS.modules] : [PATHS.src, PATHS.modules],
8282
preferRelative: true,
8383
alias: {
84-
// TODO: change it
85-
vue$: "vue/dist/vue.runtime.esm-bundler.js",
86-
// vue: isDev ? "vue/dist/vue.js" : "vue/dist/vue.min.js",
84+
"vue$": "vue/dist/vue.runtime.esm-bundler.js",
85+
"hls.js": "hls.js/dist/hls.light.min.js",
8786
},
8887
},
8988
plugins: [

0 commit comments

Comments
 (0)