Browse Source

Fix source map paths

pull/8042/head
Thomas Kaul 2 weeks ago
parent
commit
4b4761660c
  1. 12
      apps/api/webpack.config.js

12
apps/api/webpack.config.js

@ -45,5 +45,17 @@ const buildOptions = {
* @type {import('webpack').WebpackOptionsNormalized} * @type {import('webpack').WebpackOptionsNormalized}
*/ */
module.exports = async () => ({ module.exports = async () => ({
output: {
devtoolModuleFilenameTemplate: ({ absoluteResourcePath }) => {
return `webpack:///${
path.isAbsolute(absoluteResourcePath)
? path.relative(
path.resolve(__dirname, '../..'),
absoluteResourcePath
)
: absoluteResourcePath
}`;
}
},
plugins: [new NxAppWebpackPlugin(buildOptions)] plugins: [new NxAppWebpackPlugin(buildOptions)]
}); });

Loading…
Cancel
Save