We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7838c0d commit 8654e82Copy full SHA for 8654e82
packages/@vue/cli-service/lib/commands/serve.js
@@ -13,6 +13,7 @@ const defaults = {
13
https: false
14
}
15
16
+/** @type {import('@vue/cli-service').ServicePlugin} */
17
module.exports = (api, options) => {
18
api.registerCommand('serve', {
19
description: 'start development server',
@@ -50,8 +51,10 @@ module.exports = (api, options) => {
50
51
// configs that only matters for dev server
52
api.chainWebpack(webpackConfig => {
53
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
- webpackConfig
54
- .devtool('eval-cheap-module-source-map')
+ if (!webpackConfig.get('devtool')) {
55
+ webpackConfig
56
+ .devtool('eval-cheap-module-source-map')
57
+ }
58
59
webpackConfig
60
.plugin('hmr')
0 commit comments