提交 eec44107 编写于 作者: yma16's avatar yma16

perf:gzip打包优化-build分支 echarts的使用

上级 a4845712
......@@ -39,16 +39,17 @@
</style>
<body>
<!-- cdn js -->
<% htmlWebpackPlugin.options.cdnConfig.forEach(function(item){ if(item.js){ %>
<script type="text/javascript" src="<%= item.js %>"></script>
<% }}) %>
<div id="app"></div>
<div id="canvas">
<div id="life"></div>
<div id="is"></div>
<div id="beautiful"></div>
</div>
<!-- cdn js -->
<% htmlWebpackPlugin.options.cdnConfig.forEach(function(item){ if(item.js){ %>
<script type="text/javascript" src="<%= item.js %>"></script>
<% }}) %>
</body>
......
......@@ -13,6 +13,7 @@ import App from './App'
// import 'github-markdown-css/github-markdown.css'
// import 'nprogress/nprogress.css'
import 'highlight.js/styles/github.css'
import * as echarts from 'echarts/core'
const env = process.env.NODE_ENV
......@@ -43,6 +44,7 @@ if (env === 'production') {
Vue.use(axios)
Vue.prototype.$axios = axios
window.$axios_w = axios
Vue.prototype.$echarts = echarts
Vue.prototype.$cookies.set('user_session', 'null')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册