-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from ElemeFE/0614-fix-common
feat: 优化包体积
- Loading branch information
Showing
48 changed files
with
282 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
module.exports = { | ||
pkgTypeList: [ | ||
{ type: 'cjs', min: false, suffix: '.common.js' }, | ||
{ type: 'cjs', min: true, suffix: '.common.min.js' }, | ||
{ type: 'umd', min: false, suffix: '.js' }, | ||
{ type: 'umd', min: true, suffix: '.min.js' } | ||
], | ||
addons: [ | ||
{ | ||
min: false, | ||
type: 'es', | ||
suffix: '.esm.js', | ||
globalName: '', | ||
src: 'src/index.es.js', | ||
dist: 'lib/index' | ||
}, | ||
{ | ||
min: false, | ||
type: 'cjs', | ||
suffix: '.js', | ||
globalName: '', | ||
src: 'src/core.js', | ||
dist: 'lib/core' | ||
}, | ||
{ | ||
min: false, | ||
type: 'cjs', | ||
suffix: '.js', | ||
globalName: '', | ||
src: 'src/utils.js', | ||
dist: 'lib/utils' | ||
}, | ||
{ | ||
min: false, | ||
type: 'cjs', | ||
suffix: '.js', | ||
globalName: '', | ||
src: 'src/constants.js', | ||
dist: 'lib/constants' | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ call the echarts resize function. | |
<vuep template="#container-width"></vuep> | ||
|
||
<script v-pre type="text/x-template" id="container-width"> | ||
<template> | ||
<template> <!-- [_ https://cdn.jsdelivr.net/npm/[email protected]/lib/index.js,https://cdn.jsdelivr.net/npm/[email protected]/lib/theme-default/index.css _] --> | ||
<el-tabs type="border-card" v-model="activeName"> | ||
<el-tab-pane label="用户管理" name="1"> <!-- name 中的数字对应chart的ref --> | ||
<ve-line :data="chartData" ref="chart1"></ve-line> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,18 +26,20 @@ | |
<div id="app"></div> | ||
<script> | ||
window.VUEP_FORM_RESOURCE = [ | ||
'<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"><\/script>', | ||
'<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"><\/script>', | ||
'<script src="https://cdn.jsdelivr.net/npm/echarts-amap/dist/echarts-amap.min.js"><\/script>', | ||
'<script src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js"><\/script>', | ||
'<script src="https://cdn.jsdelivr.net/npm/v-charts/lib/index.min.js"><\/script>', | ||
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/v-charts/lib/style.min.css">' | ||
'<script src="https://cdn.jsdelivr.net/npm/v-charts/lib/index.min.js"><\/script>' | ||
] | ||
window.VUEP_RESOURCE = [ | ||
"https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js", | ||
"https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js", | ||
"https://cdn.jsdelivr.net/npm/echarts-amap/dist/echarts-amap.min.js", | ||
"https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js", | ||
"https://cdn.jsdelivr.net/npm/v-charts/lib/style.min.css" | ||
] | ||
window.$docsify = { | ||
name: 'v-charts', | ||
repo: 'https://github.com/elemefe/v-charts', | ||
loadSidebar: 'sidebar.md', | ||
ga: 'UA-104697795-1', | ||
ga: 'UA-120605025-3', | ||
homepage: 'install.md', | ||
formatUpdated: '{MM}/{DD} {HH}:{mm}', | ||
auto2top: true, | ||
|
@@ -98,7 +100,7 @@ | |
<script src="//cdn.jsdelivr.net/npm/babel-standalone/babel.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/shap/sdk/Shap.umd.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected].3/dist/vuep.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected].8/dist/vuep.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/echarts@latest/dist/echarts.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/echarts-amap/dist/echarts-amap.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/lib/index.js"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<vuep template="#container-width"></vuep> | ||
|
||
<script v-pre type="text/x-template" id="container-width"> | ||
<template> | ||
<template> <!-- [_ https://cdn.jsdelivr.net/npm/[email protected]/lib/index.js,https://cdn.jsdelivr.net/npm/[email protected]/lib/theme-default/index.css _] --> | ||
<el-tabs type="border-card" v-model="activeName"> | ||
<el-tab-pane label="用户管理" name="1"> <!-- name 中的数字对应chart的ref --> | ||
<ve-line :data="chartData" ref="chart1"></ve-line> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.