Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getAssetPath = (...arg) => trimSlashes(join(config.assetPath, ...arg));
const isProduction = process.env.NODE_ENV === 'production';
const getAssetPath = (...arg) => trimSlashes(join(config.assetPath, ...arg));
const isProduction = process.env.NODE_ENV === 'production';
const getAssetPath = (...arg) => trimSlashes(join(config.assetPath, ...arg));
const getAssetPath = (...args) => trimSlashes(join(...args));
const getAssetPath = (...args) => trimSlashes(join(...args));
return locations.map((location) => {
const isString = typeof location === 'string';
const url = ensureLeadingSlash(
joinUrl(basePath, isString ? location : location.url)
);
return isString ? { url } : { ...location, url };
});
}