mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
describe: modify absolute path to relative path in source map file. Feature or Bugfix: Bugfix Binary Source:Yes Signed-off-by: youbing54<youbing3@huawei.com>
This commit is contained in:
parent
790aeb478a
commit
fe420c76a8
@ -47,7 +47,9 @@ const webpackConfig = {
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
devtoolModuleFilenameTemplate: 'webpack:///[absolute-resource-path]'
|
||||
devtoolModuleFilenameTemplate: (info) => {
|
||||
return `${info.absoluteResourcePath.replace(process.env.projectRootPath + path.sep, '')}`;
|
||||
},
|
||||
},
|
||||
devtool: 'nosources-source-map',
|
||||
mode: 'development',
|
||||
|
Loading…
Reference in New Issue
Block a user