Skip to content

Commit

Permalink
Added default value for DISABLE_SOURCE_MAPS (#7228)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored Dec 6, 2023
1 parent 560c17f commit a9c3425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat-ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = (env) => {
const defaultAppConfig = path.join(__dirname, 'src/config.tsx');
const defaultPlugins = ['plugins/sam'];

const sourceMapsDisabled = process.env.DISABLE_SOURCE_MAPS.toLocaleLowerCase() === 'true';
const sourceMapsDisabled = (process.env.DISABLE_SOURCE_MAPS || 'false').toLocaleLowerCase() === 'true';
const appConfigFile = process.env.UI_APP_CONFIG ? process.env.UI_APP_CONFIG : defaultAppConfig;
const pluginsList = process.env.CLIENT_PLUGINS ? [...defaultPlugins, ...process.env.CLIENT_PLUGINS.split(':')]
.map((s) => s.trim()).filter((s) => !!s) : defaultPlugins;
Expand Down

0 comments on commit a9c3425

Please sign in to comment.