Skip to content
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

feat: enhance library file packaging #2665

Closed
gzg1023 opened this issue Mar 24, 2021 · 0 comments · Fixed by #2750
Closed

feat: enhance library file packaging #2665

gzg1023 opened this issue Mar 24, 2021 · 0 comments · Fixed by #2750
Labels
feat: library mode p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@gzg1023
Copy link
Contributor

gzg1023 commented Mar 24, 2021

I'm using vite as a development build tool for lib projects. In vite, you can use lib to develop the file entry and the variable name or build type,but there is no fileName specified
I read the source code and found that the field is a direct way to get the name field of package.json.I think a new fileName field should be added to specify the name of the output file after packaging, and the default value can be the name of package.json

otherwise I would need to manually change the names of the different types of files after each build is completed.
Because the nane of my package.json is not necessarily the name I need.

I added a field for the lib configuration. See #2475 for details

@gzg1023 gzg1023 changed the title feat:Enhance library file packaging feat:enhance library file packaging Mar 24, 2021
@gzg1023 gzg1023 changed the title feat:enhance library file packaging feat: enhance library file packaging Mar 24, 2021
@Shinigami92 Shinigami92 added has pr p2-nice-to-have Not breaking anything but nice to have (priority) and removed enhancement: pending triage labels Mar 24, 2021
@patak-dev patak-dev linked a pull request Mar 24, 2021 that will close this issue
4 tasks
@Niputi Niputi linked a pull request Jan 26, 2022 that will close this issue
@Niputi Niputi closed this as completed Jan 26, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: library mode p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
3 participants