mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #2987 from vector-im/rav/karma_tweaks
A couple of tweaks to the karma config
This commit is contained in:
commit
92096c40ac
@ -29,12 +29,22 @@ module.exports = function (config) {
|
|||||||
files: [
|
files: [
|
||||||
'node_modules/babel-polyfill/browser.js',
|
'node_modules/babel-polyfill/browser.js',
|
||||||
testFile,
|
testFile,
|
||||||
{pattern: 'vector/img/*', watched: false, included: false, served: true, nocache: false},
|
|
||||||
|
// make the images available via our httpd. They will be avaliable
|
||||||
|
// below http://localhost:[PORT]/base/. See also `proxies` which
|
||||||
|
// defines alternative URLs for them.
|
||||||
|
//
|
||||||
|
// This isn't required by any of the tests, but it stops karma
|
||||||
|
// logging warnings when it serves a 404 for them.
|
||||||
|
{
|
||||||
|
pattern: 'src/skins/vector/img/*',
|
||||||
|
watched: false, included: false, served: true, nocache: false,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
// redirect img links to the karma server
|
|
||||||
proxies: {
|
proxies: {
|
||||||
"/img/": "/base/vector/img/",
|
// redirect img links to the karma server. See above.
|
||||||
|
"/img/": "/base/src/skins/vector/img/",
|
||||||
},
|
},
|
||||||
|
|
||||||
// preprocess matching files before serving them to the browser
|
// preprocess matching files before serving them to the browser
|
||||||
@ -86,6 +96,12 @@ module.exports = function (config) {
|
|||||||
|
|
||||||
webpack: {
|
webpack: {
|
||||||
module: {
|
module: {
|
||||||
|
preLoaders: [
|
||||||
|
// use the source-map-loader for javascript. This means
|
||||||
|
// that we have a better chance of seeing line numbers from
|
||||||
|
// the pre-babeled source.
|
||||||
|
{ test: /\.js$/, loader: "source-map-loader" },
|
||||||
|
],
|
||||||
loaders: [
|
loaders: [
|
||||||
{ test: /\.json$/, loader: "json" },
|
{ test: /\.json$/, loader: "json" },
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user