Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 70cd58a

Browse files
samtgarsonrosen-vladimirov
authored andcommitted
feat(Vue): option to enable sourcemaps (#774)
1 parent ba6d896 commit 70cd58a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: templates/webpack.vue.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = env => {
4545
production, // --env.production
4646
report, // --env.report
4747
hmr, // --env.hmr
48+
sourceMap, // --env.sourceMap
4849
} = env;
4950

5051
const externals = nsWebpack.getConvertedExternals(env.externals);
@@ -111,7 +112,7 @@ module.exports = env => {
111112
"fs": "empty",
112113
"__dirname": false,
113114
},
114-
devtool: "none",
115+
devtool: sourceMap ? "inline-source-map" : "none",
115116
optimization: {
116117
splitChunks: {
117118
cacheGroups: {

0 commit comments

Comments
 (0)