File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/hap-packager/src/plugins Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ HandlerPlugin.prototype.apply = function (compiler) {
33
33
const entryFiles = getEntryFiles ( compiler . options . entry )
34
34
const liteEntryFiles = getLiteEntryFiles ( compiler . options . entry )
35
35
const { originType } = compileOptionsObject || { }
36
+ const isDevMode = globalConfig . mode === 'development'
36
37
compilation . chunks . forEach ( function ( chunk ) {
37
38
chunk . files . forEach ( function ( fileName ) {
39
+ // 非 IDE 打轻卡包或者 IDE 打正式轻卡包
38
40
if (
39
- originType !== compileOptionsMeta . originTypeNum . IDE &&
41
+ ( originType !== compileOptionsMeta . originTypeNum . IDE || ! isDevMode ) &&
40
42
liteEntryFiles . indexOf ( fileName ) >= 0
41
43
) {
42
44
delete compilation . assets [ fileName ] // delete bundle js for lite card
You can’t perform that action at this time.
0 commit comments