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

Commit b5fd066

Browse files
edusperoniDimitar Tachev
authored and
Dimitar Tachev
committed
fix: sourceMap not generated with Uglify (#819)
* fix: sourceMap not generated with Uglify * fix: sourceMap not generated with Uglify on Vue
1 parent ab6bbf6 commit b5fd066

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Diff for: templates/webpack.angular.js

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ module.exports = env => {
164164
new UglifyJsPlugin({
165165
parallel: true,
166166
cache: true,
167+
sourceMap: !!sourceMap,
167168
uglifyOptions: {
168169
output: {
169170
comments: false,

Diff for: templates/webpack.javascript.js

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ module.exports = env => {
125125
new UglifyJsPlugin({
126126
parallel: true,
127127
cache: true,
128+
sourceMap: !!sourceMap,
128129
uglifyOptions: {
129130
output: {
130131
comments: false,

Diff for: templates/webpack.typescript.js

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ module.exports = env => {
127127
new UglifyJsPlugin({
128128
parallel: true,
129129
cache: true,
130+
sourceMap: !!sourceMap,
130131
uglifyOptions: {
131132
output: {
132133
comments: false,

Diff for: templates/webpack.vue.js

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ module.exports = env => {
138138
new UglifyJsPlugin({
139139
parallel: true,
140140
cache: true,
141+
sourceMap: !!sourceMap,
141142
uglifyOptions: {
142143
output: {
143144
comments: false,

0 commit comments

Comments
 (0)