sula-real
sula-real copied to clipboard
CDN / External scripts import in browser
The webpack compilation times and the output size are large.
How to load the eCharts
, antd
etc. directly from CDN in the HTML
For example:
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/4.8.0/echarts.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.js"></script>
and remove the npm dependencies in the package.json