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

In Library Mode, I want to input entry path and Location to build from cli #2953

Closed
SyedUmerHasan opened this issue Apr 11, 2021 · 1 comment

Comments

@SyedUmerHasan
Copy link

Clear and concise description of the problem

I had been working on mono repo and want to build my whole project with the same vite.config.js
But what I will do is just change the scripts of package.json to achieve the dynamic results.

Suggested solution

"scripts": {
    "prettier": "prettier --write ./packages",
    "dev": "vite",
    "build": "vite build",
    "build:abc": "vite build --entry ./packages/abc/index.ts",
    "build:abcd": "vite build --entry ./packages/abcd/index.ts",
    "build:abcde": "vite build --entry ./packages/abcde/index.ts",
    "build:abcdef": "vite build --entry ./packages/abcdef/index.ts",
    "serve": "vite preview",
  },
@SyedUmerHasan SyedUmerHasan changed the title In Library I want to input entry path from cli In Library Mode, I want to input entry path and Location to build from cli Apr 11, 2021
@bluwy
Copy link
Member

bluwy commented Mar 6, 2022

I think it would be more robust if the Vite config support multiple entrypoints by default. Passing in the CLI directly is limited if we want to, say, output entries in different locations. This may be similar to #1736 and #4530. I'll close this in favor of the latter PR as it has more awareness.

@bluwy bluwy closed this as completed Mar 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants