Skip to content

Commit

Permalink
add compile-time vars to karma conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Jan 4, 2018
1 parent 97ae36f commit 4bfcf41
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Karma configuration
// Generated on Tue Jul 18 2017 12:17:16 GMT-0700 (PDT)

var path = require('path');
const webpack = require('webpack');
const path = require('path');

module.exports = function(config) {
config.set({
Expand Down Expand Up @@ -51,7 +52,15 @@ module.exports = function(config) {
]
}
]
}
},
plugins: [
new webpack.DefinePlugin({
__VERSION__: JSON.stringify('x.x.x'),
__USE_SUBTITLES__: JSON.stringify(true),
__USE_ALT_AUDIO__: JSON.stringify(true),
__USE_EME_DRM__: JSON.stringify(true)
})
]
},

// web server port
Expand Down

0 comments on commit 4bfcf41

Please sign in to comment.