Skip to content

Commit

Permalink
demo: ensure dist is retrieved from the right folder in static mode
Browse files Browse the repository at this point in the history
still work with webpack as well
  • Loading branch information
mangui committed Aug 28, 2017
1 parent 4d98efc commit 297831d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h4> Stats Display </h4>
<br><br>

<script src="../../streams.js"></script>
<script src="/hls.js/dist/hls.js"></script>
<script src="../dist/hls.js"></script>
<script src="canvas.js"></script>
<script src="metrics.js"></script>
<script src="jsonpack.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const multiConfig = [
chunkFilename: '[name].js',
sourceMapFilename: 'hls.js.map',
path: path.resolve(__dirname, 'dist'),
publicPath: '/hls.js/dist/',
publicPath: '../dist/',
library: 'Hls',
libraryTarget: 'umd',
libraryExport: 'default'
Expand All @@ -111,7 +111,7 @@ const multiConfig = [
filename: 'hls.min.js',
chunkFilename: '[name].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/hls.js/dist/',
publicPath: '../dist/',
library: 'Hls',
libraryTarget: 'umd',
libraryExport: 'default'
Expand All @@ -125,7 +125,7 @@ const multiConfig = [
chunkFilename: '[name].js',
sourceMapFilename: 'hls.light.js.map',
path: path.resolve(__dirname, 'dist'),
publicPath: '/hls.js/dist/',
publicPath: '../dist/',
library: 'Hls',
libraryTarget: 'umd',
libraryExport: 'default'
Expand All @@ -142,7 +142,7 @@ const multiConfig = [
filename: 'hls.light.min.js',
chunkFilename: '[name].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/hls.js/dist/',
publicPath: '../dist/',
library: 'Hls',
libraryTarget: 'umd',
libraryExport: 'default'
Expand Down

0 comments on commit 297831d

Please sign in to comment.