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

Commit 355a4cf

Browse files
authored
Enable optional sourcemaps in the Vue template
1 parent 3fccf86 commit 355a4cf

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
@@ -44,6 +44,7 @@ module.exports = env => {
4444
production, // --env.production
4545
report, // --env.report
4646
hmr, // --env.hmr
47+
sourceMap, // --env.sourceMap
4748
} = env;
4849

4950
const externals = (env.externals || []).map((e) => { // --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)