Commit fdb74985 authored by Mike Greiling's avatar Mike Greiling Committed by Clement Ho

Allow omnibus to disable sourcemaps in memory constrained environments

parent 10d268d5
......@@ -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