Vue-cli optimization reduces project volume problems externals configuration items

configuration items are as follows

clipboard.png
clipboard.png
:
1iview

clipboard.png
2 echarts import echarts from "echarts"

clipboard.png


CDN

clipboard.png

Mar.04,2021

Brother, you import in the code. Iview, you should also use npm to install the iview package, right? Then CDN introduced iview

again.

DLLReferencePlugin of webpack learn about packing third-party libraries into a single package. I wonder if it can meet your needs

.

the problem with echarts suggests that you check the loading order of business logic scripts and dependent library scripts

personal humble opinion.

Menu