Disable source-map generation when running tests

This should save, a little bit of, time/resources on the bots since source-maps aren't used for anything during testing.
This commit is contained in:
Jonas Jenwald 2018-12-13 17:41:27 +01:00
parent fc607e35de
commit b60ea67a11

View File

@ -145,7 +145,7 @@ function createWebpackConfig(defines, output) {
var licenseHeaderLibre =
fs.readFileSync('./src/license_header_libre.js').toString();
var enableSourceMaps = !bundleDefines.FIREFOX && !bundleDefines.MOZCENTRAL &&
!bundleDefines.CHROME;
!bundleDefines.CHROME && !bundleDefines.TESTING;
var skipBabel = bundleDefines.SKIP_BABEL ||
process.env['SKIP_BABEL'] === 'true';