V2: How to control `dist` directory
See original GitHub issueParcel Version: 2.0.0-alpha.3.1 OS: Ubuntu 18.04
Context:
I have a pretty simple use case that worked well with parcel 1.x
Basically, I have a server that serves out of public directory where I’d like my build to be placed.
Example:
/server/public/js
In Parcel’s previous version, I just used the -d
option to do something like:
parcel watch ./app/client/src/index.tsx -d ./dist/server/public/js
or
parcel build ./app/client/src/index.tsx -d ./dist/server/public/js
In the current version, I receive an error:
error: unknown option -d
I’ve tried finding this option via the README, parcel --help build
, and searching “dist” on the repo. If this is documented somewhere, it’s not clear and/or buried.
Questions
-
Is there a migrating guide?
-
Can I control where output is placed?
Coming from other configuration tools, this has been a godsend. So, thanks for the ease of use.
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (8 by maintainers)
If you have scripts like
How would you migrate that to v2?
@eduardobcastro You probably have a
main: "index.html"
line in your package.json. Remove that