vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.75k stars 6.33k forks source link

SourceMapDevToolPlugin conflict with cli's sourcemap #3048

Closed IBICF closed 5 years ago

IBICF commented 5 years ago

Version

3.0.1

Node and OS info

Node 8.11.4 / macOS 10.13.4

Steps to reproduce

none

What is expected?

output the right sourceMappingURL

What is actually happening?

I want to config the sourcemap file's publicPath, so i used webpack.SourceMapDevToolPlugin, vue cli3 has his own config, that is productionSourceMap, when i set this to false, SourceMapDevToolPlugin didn't output the sourceMappingURL, when i set this to true, it outputs two sourceMappingURL, one is the path i configed, one is relativePath like this:

IBICF commented 5 years ago

oh,just a moment ago, i try to add devtool: false and it works! image