kfb-view 2.1.6 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxProjectSettings">
4
+ <option name="commitMessageIssueKeyValidationOverride">
5
+ <BoolValueOverride>
6
+ <option name="enabled" value="true" />
7
+ </BoolValueOverride>
8
+ </option>
9
+ <option name="commitMessageValidationConfigOverride">
10
+ <CommitMessageValidationOverride>
11
+ <option name="enabled" value="true" />
12
+ </CommitMessageValidationOverride>
13
+ </option>
14
+ </component>
15
+ </project>
@@ -37,10 +37,11 @@
37
37
  </component>
38
38
  <component name="ChangeListManager">
39
39
  <list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="">
40
- <change beforePath="$PROJECT_DIR$/babel.config.js" beforeDir="false" afterPath="$PROJECT_DIR$/babel.config.js" afterDir="false" />
40
+ <change beforePath="$PROJECT_DIR$/config/webpack.dev.conf.js" beforeDir="false" afterPath="$PROJECT_DIR$/config/webpack.dev.conf.js" afterDir="false" />
41
+ <change beforePath="$PROJECT_DIR$/example/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.html" afterDir="false" />
41
42
  <change beforePath="$PROJECT_DIR$/example/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.js" afterDir="false" />
42
43
  <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
43
- <change beforePath="$PROJECT_DIR$/src/components/navigator/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/navigator/index.js" afterDir="false" />
44
+ <change beforePath="$PROJECT_DIR$/src/util/imageData.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/util/imageData.js" afterDir="false" />
44
45
  </list>
45
46
  <option name="SHOW_DIALOG" value="false" />
46
47
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -63,6 +64,12 @@
63
64
  </option>
64
65
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
65
66
  </component>
67
+ <component name="GitToolBoxStore">
68
+ <option name="projectConfigVersion" value="4" />
69
+ </component>
70
+ <component name="MarkdownSettingsMigration">
71
+ <option name="stateVersion" value="1" />
72
+ </component>
66
73
  <component name="ProjectId" id="1hqXz2bwk8xsvUX2aTlZ9SFeYgK" />
67
74
  <component name="ProjectViewState">
68
75
  <option name="hideEmptyMiddlePackages" value="true" />
@@ -71,6 +78,7 @@
71
78
  <component name="PropertiesComponent">
72
79
  <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
73
80
  <property name="WebServerToolWindowFactoryState" value="false" />
81
+ <property name="dart.analysis.tool.window.visible" value="false" />
74
82
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
75
83
  <property name="list.type.of.created.stylesheet" value="CSS" />
76
84
  <property name="node.js.detected.package.eslint" value="true" />
@@ -79,11 +87,11 @@
79
87
  <property name="node.js.path.for.package.standard" value="project" />
80
88
  <property name="node.js.selected.package.eslint" value="(autodetect)" />
81
89
  <property name="node.js.selected.package.standard" value="" />
90
+ <property name="nodejs_interpreter_path" value="$USER_HOME$/.nvm/versions/node/v10.15.1/bin/node" />
82
91
  <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
83
92
  <property name="nodejs_npm_path_reset_for_default_project" value="true" />
84
- <property name="nodejs_package_manager_path" value="yarn" />
85
- <property name="restartRequiresConfirmation" value="false" />
86
- <property name="settings.editor.selected.configurable" value="project.propVCSSupport.CommitDialog" />
93
+ <property name="nodejs_package_manager_path" value="npm" />
94
+ <property name="settings.editor.selected.configurable" value="settings.nodejs" />
87
95
  <property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
88
96
  <property name="vue.rearranger.settings.migration" value="true" />
89
97
  </component>
@@ -126,24 +134,23 @@
126
134
  <envs />
127
135
  <method v="2" />
128
136
  </configuration>
129
- <configuration name="lint" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
137
+ <configuration name="clean:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
130
138
  <package-json value="$PROJECT_DIR$/package.json" />
131
139
  <command value="run" />
132
140
  <scripts>
133
- <script value="lint" />
141
+ <script value="clean:lib" />
134
142
  </scripts>
135
143
  <node-interpreter value="project" />
136
144
  <envs />
137
145
  <method v="2" />
138
146
  </configuration>
139
- <configuration name="server:dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
147
+ <configuration name="server" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
140
148
  <package-json value="$PROJECT_DIR$/package.json" />
141
149
  <command value="run" />
142
150
  <scripts>
143
- <script value="server:dev" />
151
+ <script value="server" />
144
152
  </scripts>
145
153
  <node-interpreter value="project" />
146
- <package-manager value="npm" />
147
154
  <envs />
148
155
  <method v="2" />
149
156
  </configuration>
@@ -153,25 +160,25 @@
153
160
  <scripts>
154
161
  <script value="server:hot" />
155
162
  </scripts>
156
- <node-interpreter value="project" />
163
+ <node-interpreter value="$USER_HOME$/.nvm/versions/node/v10.15.1/bin/node" />
157
164
  <package-manager value="npm" />
158
165
  <envs />
159
166
  <method v="2" />
160
167
  </configuration>
161
168
  <list>
162
- <item itemvalue="npm.server:dev" />
163
169
  <item itemvalue="npm.server:hot" />
164
170
  <item itemvalue="npm.build:lib" />
165
171
  <item itemvalue="npm.build:prod" />
166
- <item itemvalue="npm.lint" />
172
+ <item itemvalue="npm.server" />
173
+ <item itemvalue="npm.clean:lib" />
167
174
  </list>
168
175
  <recent_temporary>
169
176
  <list>
170
177
  <item itemvalue="npm.build:lib" />
171
- <item itemvalue="npm.server:hot" />
172
- <item itemvalue="npm.lint" />
173
- <item itemvalue="npm.server:dev" />
178
+ <item itemvalue="npm.clean:lib" />
179
+ <item itemvalue="npm.server" />
174
180
  <item itemvalue="npm.build:prod" />
181
+ <item itemvalue="npm.server:hot" />
175
182
  </list>
176
183
  </recent_temporary>
177
184
  </component>
@@ -245,14 +252,23 @@
245
252
  <workItem from="1632988331348" duration="597000" />
246
253
  <workItem from="1633433313520" duration="532000" />
247
254
  <workItem from="1633434001653" duration="14000" />
248
- <workItem from="1634268135304" duration="635000" />
249
- </task>
250
- <task id="LOCAL-00001" summary="2.0.0重构">
251
- <created>1600767106537</created>
252
- <option name="number" value="00001" />
253
- <option name="presentableId" value="LOCAL-00001" />
254
- <option name="project" value="LOCAL" />
255
- <updated>1600767106537</updated>
255
+ <workItem from="1634268135304" duration="1276000" />
256
+ <workItem from="1634344422400" duration="3753000" />
257
+ <workItem from="1634435147345" duration="2072000" />
258
+ <workItem from="1634438173344" duration="4115000" />
259
+ <workItem from="1634553017155" duration="1214000" />
260
+ <workItem from="1634689926208" duration="599000" />
261
+ <workItem from="1634776612768" duration="633000" />
262
+ <workItem from="1641349006244" duration="1011000" />
263
+ <workItem from="1641351835998" duration="596000" />
264
+ <workItem from="1646288182802" duration="1809000" />
265
+ <workItem from="1646290338220" duration="3020000" />
266
+ <workItem from="1647822528539" duration="6003000" />
267
+ <workItem from="1647829382894" duration="594000" />
268
+ <workItem from="1647836886455" duration="602000" />
269
+ <workItem from="1648018813125" duration="1482000" />
270
+ <workItem from="1648082997200" duration="605000" />
271
+ <workItem from="1648452730691" duration="3597000" />
256
272
  </task>
257
273
  <task id="LOCAL-00002" summary="2.0.0重构">
258
274
  <created>1600861772922</created>
@@ -548,19 +564,68 @@
548
564
  <option name="project" value="LOCAL" />
549
565
  <updated>1632379605009</updated>
550
566
  </task>
551
- <option name="localTasksCounter" value="44" />
567
+ <task id="LOCAL-00044" summary="chrome 49版本兼容">
568
+ <created>1634268789961</created>
569
+ <option name="number" value="00044" />
570
+ <option name="presentableId" value="LOCAL-00044" />
571
+ <option name="project" value="LOCAL" />
572
+ <updated>1634268789961</updated>
573
+ </task>
574
+ <task id="LOCAL-00045" summary="刻度线显示异常">
575
+ <created>1634437932304</created>
576
+ <option name="number" value="00045" />
577
+ <option name="presentableId" value="LOCAL-00045" />
578
+ <option name="project" value="LOCAL" />
579
+ <updated>1634437932304</updated>
580
+ </task>
581
+ <task id="LOCAL-00046" summary="优化,增加部分注释">
582
+ <created>1646292963908</created>
583
+ <option name="number" value="00046" />
584
+ <option name="presentableId" value="LOCAL-00046" />
585
+ <option name="project" value="LOCAL" />
586
+ <updated>1646292963908</updated>
587
+ </task>
588
+ <task id="LOCAL-00047" summary="2.1.8">
589
+ <created>1646292978431</created>
590
+ <option name="number" value="00047" />
591
+ <option name="presentableId" value="LOCAL-00047" />
592
+ <option name="project" value="LOCAL" />
593
+ <updated>1646292978431</updated>
594
+ </task>
595
+ <task id="LOCAL-00048" summary="TerserPlugin">
596
+ <created>1646293408931</created>
597
+ <option name="number" value="00048" />
598
+ <option name="presentableId" value="LOCAL-00048" />
599
+ <option name="project" value="LOCAL" />
600
+ <updated>1646293408931</updated>
601
+ </task>
602
+ <task id="LOCAL-00049" summary="2.1.9">
603
+ <created>1646293508969</created>
604
+ <option name="number" value="00049" />
605
+ <option name="presentableId" value="LOCAL-00049" />
606
+ <option name="project" value="LOCAL" />
607
+ <updated>1646293508969</updated>
608
+ </task>
609
+ <task id="LOCAL-00050" summary="增加图像处理操作">
610
+ <created>1647827904359</created>
611
+ <option name="number" value="00050" />
612
+ <option name="presentableId" value="LOCAL-00050" />
613
+ <option name="project" value="LOCAL" />
614
+ <updated>1647827904359</updated>
615
+ </task>
616
+ <option name="localTasksCounter" value="51" />
552
617
  <servers />
553
618
  </component>
554
619
  <component name="TypeScriptGeneratedFilesManager">
555
620
  <option name="version" value="3" />
556
621
  </component>
557
622
  <component name="Vcs.Log.History.Properties">
558
- <option name="COLUMN_ORDER">
623
+ <option name="COLUMN_ID_ORDER">
559
624
  <list>
560
- <option value="0" />
561
- <option value="2" />
562
- <option value="3" />
563
- <option value="1" />
625
+ <option value="Default.Root" />
626
+ <option value="Default.Author" />
627
+ <option value="Default.Date" />
628
+ <option value="Default.Subject" />
564
629
  </list>
565
630
  </option>
566
631
  </component>
@@ -586,18 +651,10 @@
586
651
  </entry>
587
652
  </map>
588
653
  </option>
589
- <option name="oldMeFiltersMigrated" value="true" />
590
654
  </component>
591
655
  <component name="VcsManagerConfiguration">
592
656
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
593
657
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
594
- <MESSAGE value="2.0.8单个标注允许拖动" />
595
- <MESSAGE value="2.0.9单个标注允许移动和调整大小" />
596
- <MESSAGE value="2.0.10缩略图" />
597
- <MESSAGE value="2.0.11截图优化" />
598
- <MESSAGE value="2.0.12增加lib打包" />
599
- <MESSAGE value="导航图优化" />
600
- <MESSAGE value="gnore" />
601
658
  <MESSAGE value="标注信息从shape中移到area" />
602
659
  <MESSAGE value="2.0.15" />
603
660
  <MESSAGE value="优化代码结构" />
@@ -616,111 +673,18 @@
616
673
  <MESSAGE value="2.1.3" />
617
674
  <MESSAGE value="2.1.4" />
618
675
  <MESSAGE value="navigator 获取元素方式修改" />
619
- <option name="LAST_COMMIT_MESSAGE" value="navigator 获取元素方式修改" />
676
+ <MESSAGE value="chrome 49版本兼容" />
677
+ <MESSAGE value="刻度线显示异常" />
678
+ <MESSAGE value="优化,增加部分注释" />
679
+ <MESSAGE value="2.1.8" />
680
+ <MESSAGE value="TerserPlugin" />
681
+ <MESSAGE value="2.1.9" />
682
+ <MESSAGE value="增加图像处理操作" />
683
+ <option name="LAST_COMMIT_MESSAGE" value="增加图像处理操作" />
620
684
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
621
685
  </component>
622
- <component name="WindowStateProjectService">
623
- <state x="738" y="358" width="1084" height="756" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1626252602840">
624
- <screen x="0" y="27" width="2560" height="1348" />
625
- </state>
626
- <state x="738" y="358" width="1084" height="756" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1626252602840" />
627
- <state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2" timestamp="1632379604925">
628
- <screen x="0" y="27" width="2560" height="1348" />
629
- </state>
630
- <state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2/0.27.2560.1348@0.27.2560.1348" timestamp="1632379604925" />
631
- <state x="233" y="564" width="2360" height="1150" key="DiffContextDialog" timestamp="1632379478129">
632
- <screen x="0" y="27" width="2560" height="1348" />
633
- </state>
634
- <state x="233" y="564" width="2360" height="1150" key="DiffContextDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1632379478129" />
635
- <state x="1595" y="688" width="424" height="484" key="FileChooserDialogImpl" timestamp="1632743649599">
636
- <screen x="0" y="27" width="3840" height="2068" />
637
- </state>
638
- <state x="1063" y="458" width="424" height="484" key="FileChooserDialogImpl/0.27.2560.1348@0.27.2560.1348" timestamp="1630485689567" />
639
- <state x="1595" y="688" key="FileChooserDialogImpl/0.27.3840.2068@0.27.3840.2068" timestamp="1632743649599" />
640
- <state width="1834" height="301" key="GridCell.Tab.0.bottom" timestamp="1634268761953">
641
- <screen x="0" y="27" width="1861" height="1052" />
642
- </state>
643
- <state width="1834" height="301" key="GridCell.Tab.0.bottom/0.27.1861.1052@0.27.1861.1052" timestamp="1634268761953" />
644
- <state width="2533" height="408" key="GridCell.Tab.0.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458365" />
645
- <state width="1834" height="301" key="GridCell.Tab.0.center" timestamp="1634268761951">
646
- <screen x="0" y="27" width="1861" height="1052" />
647
- </state>
648
- <state width="1834" height="301" key="GridCell.Tab.0.center/0.27.1861.1052@0.27.1861.1052" timestamp="1634268761951" />
649
- <state width="2533" height="408" key="GridCell.Tab.0.center/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458362" />
650
- <state width="1834" height="301" key="GridCell.Tab.0.left" timestamp="1634268761950">
651
- <screen x="0" y="27" width="1861" height="1052" />
652
- </state>
653
- <state width="1834" height="301" key="GridCell.Tab.0.left/0.27.1861.1052@0.27.1861.1052" timestamp="1634268761950" />
654
- <state width="2533" height="408" key="GridCell.Tab.0.left/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458361" />
655
- <state width="1834" height="301" key="GridCell.Tab.0.right" timestamp="1634268761952">
656
- <screen x="0" y="27" width="1861" height="1052" />
657
- </state>
658
- <state width="1834" height="301" key="GridCell.Tab.0.right/0.27.1861.1052@0.27.1861.1052" timestamp="1634268761952" />
659
- <state width="2533" height="408" key="GridCell.Tab.0.right/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458364" />
660
- <state width="2533" height="457" key="GridCell.Tab.1.bottom" timestamp="1626673542669">
661
- <screen x="0" y="27" width="2560" height="1348" />
662
- </state>
663
- <state width="2533" height="457" key="GridCell.Tab.1.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542669" />
664
- <state width="2533" height="457" key="GridCell.Tab.1.center" timestamp="1626673542666">
665
- <screen x="0" y="27" width="2560" height="1348" />
666
- </state>
667
- <state width="2533" height="457" key="GridCell.Tab.1.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542666" />
668
- <state width="2533" height="457" key="GridCell.Tab.1.left" timestamp="1626673542663">
669
- <screen x="0" y="27" width="2560" height="1348" />
670
- </state>
671
- <state width="2533" height="457" key="GridCell.Tab.1.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542663" />
672
- <state width="2533" height="457" key="GridCell.Tab.1.right" timestamp="1626673542668">
673
- <screen x="0" y="27" width="2560" height="1348" />
674
- </state>
675
- <state width="2533" height="457" key="GridCell.Tab.1.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542668" />
676
- <state width="2533" height="457" key="GridCell.Tab.2.bottom" timestamp="1626673542674">
677
- <screen x="0" y="27" width="2560" height="1348" />
678
- </state>
679
- <state width="2533" height="457" key="GridCell.Tab.2.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542674" />
680
- <state width="2533" height="457" key="GridCell.Tab.2.center" timestamp="1626673542672">
681
- <screen x="0" y="27" width="2560" height="1348" />
682
- </state>
683
- <state width="2533" height="457" key="GridCell.Tab.2.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542672" />
684
- <state width="2533" height="457" key="GridCell.Tab.2.left" timestamp="1626673542671">
685
- <screen x="0" y="27" width="2560" height="1348" />
686
- </state>
687
- <state width="2533" height="457" key="GridCell.Tab.2.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542671" />
688
- <state width="2533" height="457" key="GridCell.Tab.2.right" timestamp="1626673542673">
689
- <screen x="0" y="27" width="2560" height="1348" />
690
- </state>
691
- <state width="2533" height="457" key="GridCell.Tab.2.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542673" />
692
- <state width="2533" height="457" key="GridCell.Tab.3.bottom" timestamp="1626673542682">
693
- <screen x="0" y="27" width="2560" height="1348" />
694
- </state>
695
- <state width="2533" height="457" key="GridCell.Tab.3.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542682" />
696
- <state width="2533" height="457" key="GridCell.Tab.3.center" timestamp="1626673542679">
697
- <screen x="0" y="27" width="2560" height="1348" />
698
- </state>
699
- <state width="2533" height="457" key="GridCell.Tab.3.center/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542679" />
700
- <state width="2533" height="457" key="GridCell.Tab.3.left" timestamp="1626673542676">
701
- <screen x="0" y="27" width="2560" height="1348" />
702
- </state>
703
- <state width="2533" height="457" key="GridCell.Tab.3.left/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542676" />
704
- <state width="2533" height="457" key="GridCell.Tab.3.right" timestamp="1626673542680">
705
- <screen x="0" y="27" width="2560" height="1348" />
706
- </state>
707
- <state width="2533" height="457" key="GridCell.Tab.3.right/0.27.2560.1348@0.27.2560.1348" timestamp="1626673542680" />
708
- <state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog" timestamp="1630460804017">
709
- <screen x="0" y="27" width="2560" height="1348" />
710
- </state>
711
- <state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1630460804017" />
712
- <state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser" timestamp="1631757307782">
713
- <screen x="0" y="27" width="2560" height="1348" />
714
- </state>
715
- <state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser/0.27.2560.1348@0.27.2560.1348" timestamp="1631757307782" />
716
- <state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2" timestamp="1632364390828">
717
- <screen x="0" y="27" width="2560" height="1348" />
718
- </state>
719
- <state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2/0.27.2560.1348@0.27.2560.1348" timestamp="1632364390828" />
720
- <state x="704" y="306" width="839" height="626" key="find.popup" timestamp="1634268143879">
721
- <screen x="0" y="27" width="1861" height="1052" />
722
- </state>
723
- <state x="704" y="306" width="839" height="626" key="find.popup/0.27.1861.1052@0.27.1861.1052" timestamp="1634268143879" />
724
- <state x="969" y="384" width="1154" height="626" key="find.popup/0.27.2560.1348@0.27.2560.1348" timestamp="1632379533248" />
686
+ <component name="XSLT-Support.FileAssociations.UIState">
687
+ <expand />
688
+ <select />
725
689
  </component>
726
690
  </project>
@@ -65,9 +65,9 @@ module.exports = function() {
65
65
  context: ['/api', '/image.php', '/process.php'],
66
66
  // target: 'http://gastric.label.hzztai.com/',
67
67
  // target: 'http://192.168.1.91:7007',
68
- // target: 'http://192.168.1.112',
68
+ target: 'http://192.168.1.91',
69
69
  // target: 'https://tct.hzztai.com',
70
- target: 'https://pis-ningbo.hzztai.com',
70
+ // target: 'https://pis-ningbo.hzztai.com',
71
71
  secure: false,
72
72
  changeOrigin: true,
73
73
  },
@@ -1,5 +1,5 @@
1
1
  const utils = require('./utils');
2
- const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
2
+ const TerserPlugin = require('terser-webpack-plugin');
3
3
  const EsmWebpackPlugin = require('@purtuga/esm-webpack-plugin');
4
4
 
5
5
  module.exports = {
@@ -61,13 +61,13 @@ module.exports = {
61
61
  // production模式下自动开启
62
62
  minimize: true,
63
63
  minimizer: [
64
- new UglifyJsPlugin({
64
+ new TerserPlugin({
65
65
  test: /\.js($|\?)/i,
66
66
  // 是否启用缓存
67
67
  cache: true,
68
68
  // 启用并行化
69
69
  parallel: true,
70
- uglifyOptions: {
70
+ terserOptions: {
71
71
  // 支持ie8
72
72
  ie8: false,
73
73
  // enable work around safari 10/11 bugs in loop scoping and await,
@@ -2,7 +2,7 @@ const utils = require('./utils');
2
2
  // const webpack = require('webpack');
3
3
  const webpackMerge = require('webpack-merge');
4
4
  const baseWebpackConfig = require('./webpack.base.conf');
5
- const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
5
+ const TerserPlugin = require('terser-webpack-plugin');
6
6
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
7
7
 
8
8
  process.env.NODE_ENV = process.env.NODE_ENV ?
@@ -31,13 +31,13 @@ module.exports = function() {
31
31
  // production模式下自动开启
32
32
  minimize: true,
33
33
  minimizer: [
34
- new UglifyJsPlugin({
34
+ new TerserPlugin({
35
35
  test: /\.js($|\?)/i,
36
36
  // 是否启用缓存
37
37
  cache: true,
38
38
  // 启用并行化
39
39
  parallel: true,
40
- uglifyOptions: {
40
+ terserOptions: {
41
41
  // 支持ie8
42
42
  ie8: false,
43
43
  // enable work around safari 10/11 bugs in loop scoping and await,