Changeset View
Changeset View
Standalone View
Standalone View
swh/web/assets/config/webpack.config.tests.js
- This file was added.
/** | |||||
* Copyright (C) 2019 The Software Heritage developers | |||||
* See the AUTHORS file at the top-level directory of this distribution | |||||
* License: GNU Affero General Public License version 3, or any later version | |||||
* See top-level LICENSE file for more information | |||||
*/ | |||||
// webpack configuration for compiling unit tests | |||||
// import webpack development configuration | |||||
var webpackTestConfig = require('./webpack.config.development'); | |||||
// unit tests will be executed by node | |||||
webpackTestConfig.target = 'node'; | |||||
// override some webpack config to fix some build issues | |||||
webpackTestConfig.output = {}; | |||||
webpackTestConfig.externals = { | |||||
canvas: 'commonjs canvas', | |||||
ws: 'commonjs ws' | |||||
}; | |||||
// webpack tests configuration | |||||
module.exports = webpackTestConfig; |