forked from asmr-hex/loopchat-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.config.js
More file actions
30 lines (18 loc) · 743 Bytes
/
test.config.js
File metadata and controls
30 lines (18 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// NOTE (cw|6.4.2017) we were using this config with mocha-webpack in order to process
// our tests (written in ES6) before running them. However, since we *need* to be running
// all our tests in the browser using Karma, we don't need this configuration most likely.
var prodConfig = require('./webpack.config')
var nodeExternals = require('webpack-node-externals')
module.exports = {
resolve: prodConfig.resolve,
target: 'node',
externals: [nodeExternals()],
devtool: 'source-map',
output: { // for sourcemap support
devtoolModuleFilenameTemplate: '[absolute-resource-path]',
devtoolFallbackModuleFilenameTemplate: '[absolute-resource-path]?[hash]'
},
module: {
loaders: prodConfig.module.loaders
}
}