Commit 58e2992e authored by Linshizhi's avatar Linshizhi

Serve wasm.

parent 2fe2427f
......@@ -26,8 +26,10 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
"./tests/specs.js",
"./specs.js",
{ pattern: "src/mp4encoder.wasm", included: false, served:true },
{ pattern: 'tmp/**/*.js', included: false, served: true },
{ pattern: 'tmp/**/*.wasm', included: false, served: true },
{ pattern: 'src/**/*.js', included: false, served: true },
],
......@@ -36,6 +38,7 @@ module.exports = function(config) {
],
proxies: {
'/tmp/mp4encoder.wasm': '/base/src/mp4encoder.wasm',
'/tmp': '/base/tmp/',
'/src': '/base/src/',
},
......@@ -44,7 +47,7 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
preprocessors: {
'./tests/specs.js': ['webpack'],
'./specs.js': ['webpack'],
},
webpack: webpackConfig,
......@@ -83,7 +86,7 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher
browsers: ['ChromeHeadless'],
// browsers: ['ChromeHeadless'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment