Open singgl opened 6 years ago
压缩版还是会超过500K
可以在线定制所需图表啊,http://echarts.baidu.com/builder.html
有定制过并且加了tooltip,但是定制出来的还是没有显示tooltip @tvChan 你有试过定制的tooltip能用吗?有用的话,就是我的用法错了!
@momolela 真机上好像没有出来tooltip
自己用构建工具压缩一下
自己用构建工具压缩一下
用什么构建工具压缩呢?
自己用构建工具压缩一下
用什么构建工具压缩呢?
对于微信小程序2M的代码包限制,可以用nodejs的uglify-js插件进行加密混淆压缩,现在可以压缩至700k左右。如果还是太大,可以去研究一下微信小程序的分包加载。
已解决,谢谢发自我的华为手机-------- 原始邮件 --------主题:Re: [ecomfe/echarts-for-weixin] echarts.js文件过大无法编译上传 求解 (#321)发件人:momolela 收件人:ecomfe/echarts-for-weixin 抄送:xiaohui96 ,Comment
自己用构建工具压缩一下
用什么构建工具压缩呢?
对于微信小程序2M的代码包限制,可以用nodejs的uglify-js插件进行加密混淆压缩,现在可以压缩至700k左右。如果还是太大,可以去研究一下微信小程序的分包加载。
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ecomfe/echarts-for-weixin","title":"ecomfe/echarts-for-weixin","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/ecomfe/echarts-for-weixin"}},"updates":{"snippets":[{"icon":"PERSON","message":"@momolela in #321: \u003e \u003e 自己用构建工具压缩一下\r\n\u003e \r\n\u003e 用什么构建工具压缩呢?\r\n\r\n对于微信小程序2M的代码包限制,可以用nodejs的uglify-js插件进行加密混淆压缩,现在可以压缩至700k左右。如果还是太大,可以去研究一下微信小程序的分包加载。"}],"action":{"name":"View Issue","url":"https://github.com/ecomfe/echarts-for-weixin/issues/321#issuecomment-433320061"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/ecomfe/echarts-for-weixin/issues/321#issuecomment-433320061", "url": "https://github.com/ecomfe/echarts-for-weixin/issues/321#issuecomment-433320061", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [ecomfe/echarts-for-weixin] echarts.js文件过大无法编译上传 求解 (#321)", "sections": [ { "text": "", "activityTitle": "momolela", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@momolela", "facts": [
] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"ecomfe/echarts-for-weixin\",\n\"issueId\": 321,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"ecomfe/echarts-for-weixin\",\n\"issueId\": 321\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/ecomfe/echarts-for-weixin/issues/321#issuecomment-433320061" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 377653471\n}" } ], "themeColor": "26292E" } ]
因为微信小程序对代码文件有大小限制的 @Ovilia echart.js有压缩版吗?网上的压缩工具都歇菜了。