Skip to content

Commit

Permalink
Fix webpack config for tests, importing a config doesn't handle the e…
Browse files Browse the repository at this point in the history
…xtends
  • Loading branch information
vincentfretin committed Jan 23, 2025
1 parent 4543bfe commit f5079f7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var path = require('path');
var glob = require('glob');
var webpack = require('webpack');
var webpackConfiguration = require('../webpack.config.js');
var webpackConfiguration = require('../webpack.common.js');

// Define test files.
var FILES = [
Expand Down Expand Up @@ -38,7 +38,18 @@ webpackConfiguration.plugins.push(new webpack.ProvidePlugin({
process: 'process/browser'
}));
// webpack will create a lot of files, use build directory instead of dist
webpackConfiguration.output.path = path.resolve(__dirname, '../build');
webpackConfiguration.output = {
library: {
name: 'AFRAME',
type: 'var',
export: 'default'
},
libraryTarget: 'umd',
path: path.resolve(__dirname, '../build'),
publicPath: '/dist/',
filename: 'aframe-master.js'
};
webpackConfiguration.mode = 'development';

var karmaConf = {
basePath: '../',
Expand Down

0 comments on commit f5079f7

Please sign in to comment.