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

Commit

Permalink
feat(Vue): option to enable sourcemaps (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtgarson authored and rosen-vladimirov committed Feb 22, 2019
1 parent ba6d896 commit 70cd58a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/webpack.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = env => {
production, // --env.production
report, // --env.report
hmr, // --env.hmr
sourceMap, // --env.sourceMap
} = env;

const externals = nsWebpack.getConvertedExternals(env.externals);
Expand Down Expand Up @@ -111,7 +112,7 @@ module.exports = env => {
"fs": "empty",
"__dirname": false,
},
devtool: "none",
devtool: sourceMap ? "inline-source-map" : "none",
optimization: {
splitChunks: {
cacheGroups: {
Expand Down

0 comments on commit 70cd58a

Please sign in to comment.