Commit 9d61cae2 authored by Clement Ho's avatar Clement Ho

Merge branch 'fix-raspi-issues' into 'master'

Allow omnibus to disable sourcemaps in memory constrained environments

See merge request gitlab-org/gitlab-ce!20053
parents 10d268d5 fdb74985
......@@ -16,10 +16,13 @@ const DEV_SERVER_PORT = parseInt(process.env.DEV_SERVER_PORT, 10) || 3808;
const DEV_SERVER_LIVERELOAD = IS_DEV_SERVER && process.env.DEV_SERVER_LIVERELOAD !== 'false';
const WEBPACK_REPORT = process.env.WEBPACK_REPORT;
const NO_COMPRESSION = process.env.NO_COMPRESSION;
const NO_SOURCEMAPS = process.env.NO_SOURCEMAPS;
const VUE_VERSION = require('vue/package.json').version;
const VUE_LOADER_VERSION = require('vue-loader/package.json').version;
const devtool = IS_PRODUCTION ? 'source-map' : 'cheap-module-eval-source-map';
let autoEntriesCount = 0;
let watchAutoEntries = [];
const defaultEntries = ['./main'];
......@@ -286,7 +289,7 @@ module.exports = {
inline: DEV_SERVER_LIVERELOAD,
},
devtool: IS_PRODUCTION ? 'source-map' : 'cheap-module-eval-source-map',
devtool: NO_SOURCEMAPS ? false : devtool,
// sqljs requires fs
node: { fs: 'empty' },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment