dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.81k stars 591 forks source link

[Feature] How to set the prefix of the project? I have been looking for it for a long time but I can’t find it. Moreover, when I use the webpack plug-in to package, univer.css will not be automatically introduced. #3759

Closed 840251442 closed 2 hours ago

840251442 commented 2 hours ago

Initial checklist

Problem

项目的prefix 是怎么设置的 我找了很久都没找到 并且我使用webpack插件打包的过程不会自动去引入univer.css

univer-bot[bot] commented 2 hours ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Feature] 项目的prefix 是怎么设置的 我找了很久都没找到 并且我使用webpack插件打包的过程不会自动去引入univer.css

Title: [Feature] How to set the prefix of the project? I have been looking for it for a long time but I can’t find it. Moreover, when I use the webpack plug-in to package, univer.css will not be automatically introduced.


Initial checklist

Problem

How to set the prefix of the project? I searched for a long time but couldn't find it. Moreover, when I use the webpack plug-in to package, univer.css will not be automatically introduced.

jikkai commented 2 hours ago

请认真且详细地描述你的需求

univer-bot[bot] commented 2 hours ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Please describe your needs carefully and in detail

840251442 commented 2 hours ago

第一个问题 我看源代码 所有的class是没有univer 这个前缀,但是项目里实际在用的时候类上面都加了 univer (有点好奇这个prefix是通过某个方式加上的) 第二个问题 我使用了@univerjs/webpack-plugin 这个库 编译时没有问题 打包之后 样式会没打包上。需要我自己手动引入样式

univer-bot[bot] commented 2 hours ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

The first question is that when I look at the source code, all classes do not have the prefix univer, but when actually used in the project, univer is added to the classes (I am a little curious whether this prefix is ​​added in a certain way) The second question is that I used the @univerjs/webpack-plugin library and there was no problem during compilation. After packaging, the styles were not packaged. I need to manually introduce the style myself

jikkai commented 2 hours ago

question 请至 discussion 咨询,GitHub issue 仅用于汇报 bug 和提交功能请求,请勿滥用。

univer-bot[bot] commented 2 hours ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

question please go to discussion for consultation. GitHub issues are only used to report bugs and submit feature requests. Please do not abuse it.