File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,9 @@ exports.run = function (options) {
188
188
}
189
189
190
190
function prepareConfig ( ) {
191
- if ( opt . sourcemap ) {
192
- config . devtool = opt . sourcemap ;
193
- }
191
+ // if (opt.sourcemap) {
192
+ // config.devtool = opt.sourcemap;
193
+ // }
194
194
195
195
if ( ! opt . quiet ) {
196
196
config . plugins . push ( require ( '../plugins/progressBarPlugin.js' ) ) ;
@@ -200,11 +200,10 @@ exports.run = function (options) {
200
200
config . output = config . output . prd ;
201
201
// fix min source-map config
202
202
if ( opt . sourcemap ) {
203
- config . devtool = config . devtool || 'source-map' ;
204
- } else {
205
- config . devtool = '' ;
203
+ config . devtool = 'source-map' ;
206
204
}
207
205
} else {
206
+ config . devtool = 'source-map' ;
208
207
config . output = config . output . dev ;
209
208
}
210
209
Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ exports.run = function (options) {
138
138
}
139
139
140
140
function prepareConfig ( ) {
141
- if ( opt . sourcemap ) {
142
- config . devtool = opt . sourcemap ;
143
- }
141
+ // if (opt.sourcemap) {
142
+ // config.devtool = opt.sourcemap;
143
+ // }
144
144
145
145
if ( ! opt . quiet ) {
146
146
config . plugins . push ( require ( '../plugins/progressBarPlugin.js' ) ) ;
@@ -150,11 +150,10 @@ exports.run = function (options) {
150
150
config . output = config . output . prd ;
151
151
// fix min source-map config
152
152
if ( opt . sourcemap ) {
153
- config . devtool = config . devtool || 'source-map' ;
154
- } else {
155
- config . devtool = '' ;
153
+ config . devtool = 'source-map' ;
156
154
}
157
155
} else {
156
+ config . devtool = 'source-map' ;
158
157
config . output = config . output . dev ;
159
158
}
160
159
You can’t perform that action at this time.
0 commit comments