-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite上怎么配置config.externals({ "./cptable": "var cptable" }); #168
Comments
|
npm install xlsx-style-hzx |
按照你的操作会出现下面的异常: |
请问解决了嘛? vite上怎么配置 |
修改源码的方式不是最好的解决方案。项目基于giltLab的CI/CD。每次修改源码不现实 |
是的,我后面才知道
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月11日(周四) 上午10:23
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [protobi/js-xlsx] vite上怎么配置config.externals({ "./cptable": "var cptable" }); (Issue #168)
npm install xlsx-style-hzx 1、cpexcel.js 的807行 var cpt = require('./cpt' + 'able') 改为 var cpt = require('./cpexcel'); 2、xlsx.js中var current_codepage = 1200, current_cptable;加上一个cptable;即var current_codepage = 1200, current_cptable, cptable;
修改源码的方式不是最好的解决方案。项目基于giltLab的CI/CD。每次修改源码不现实
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
所以vite上是怎么配的呢,能否参考一下。 |
刚想起来还没回复你,抱歉,下面是我在webpack vue2环境下的配置,至于vite,我还没有在上面使用过,不过原理应该都一样,找到相同属性的配置就行了吧 // vue.config.js |
vite上怎么配置config.externals({ "./cptable": "var cptable" });
The text was updated successfully, but these errors were encountered: