mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(webpack) devtoolModuleFilenameTemplate: webpack:// -> cloudcmd
This commit is contained in:
parent
5232186a3b
commit
d164830770
1 changed files with 7 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ module.exports = {
|
|||
filename: '[name].js',
|
||||
path: isDev ? distDev : dist,
|
||||
pathinfo: isDev,
|
||||
libraryTarget: 'umd'
|
||||
libraryTarget: 'umd',
|
||||
devtoolModuleFilenameTemplate,
|
||||
},
|
||||
plugins,
|
||||
externals: [
|
||||
|
|
@ -85,3 +86,8 @@ function externals(context, request, fn) {
|
|||
fn();
|
||||
}
|
||||
|
||||
function devtoolModuleFilenameTemplate(info) {
|
||||
const resource = info.absoluteResourcePath.replace(__dirname + path.sep, '');
|
||||
return `file://cloudcmd/${resource}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue