diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js index e59eee0bfb..29a7a84a1e 100644 --- a/apps/api/webpack.config.js +++ b/apps/api/webpack.config.js @@ -45,5 +45,17 @@ const buildOptions = { * @type {import('webpack').WebpackOptionsNormalized} */ module.exports = async () => ({ + output: { + devtoolModuleFilenameTemplate: ({ absoluteResourcePath }) => { + return `webpack:///${ + path.isAbsolute(absoluteResourcePath) + ? path.relative( + path.resolve(__dirname, '../..'), + absoluteResourcePath + ) + : absoluteResourcePath + }`; + } + }, plugins: [new NxAppWebpackPlugin(buildOptions)] });