Skip to content

Commit a3101fc

Browse files
committed
show absolute path in devtool
1 parent fb57bb7 commit a3101fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

template/build/webpack.base.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ module.exports = {
1313
output: {
1414
path: _.outputPath,
1515
filename: '[name].js',
16-
publicPath: config.publicPath
16+
publicPath: config.publicPath,
17+
// Point sourcemap entries to original disk location
18+
devtoolModuleFilenameTemplate: info => path.resolve(info.absoluteResourcePath),
19+
// Add /* filename */ comments to generated require()s in the output.
20+
pathinfo: true
1721
},
1822
performance: {
1923
hints: process.env.NODE_ENV === 'production' ? 'warning' : false

0 commit comments

Comments
 (0)