-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
2.0 --out-dir
equivalent
#4567
Comments
(WIP migration docs: https://parcel2-docs.now.sh/getting-started/migration/) |
Cool, any chance that can at least be added to the --help output before
this is considered closed? Or did I somehow miss it? I looked for any
option that might do the trick, and never saw that one.
Thanks.
|
|
Oh, I think I ran `parcel` and not `parcel2`. My mistake.
|
Sorry, |
@mischnic - Is there any reason,
The only way to make it work in this version was - to add
|
It was added back in |
Hello, I can't get --dist-dir working. I ran But as output, I get: ✨ Built in 1.17s
dist/lib.js 1.91 KB 661ms
dist/lib.css 78 B 660ms
Done in 1.58s. Is there something more to do to get it work? |
Works for me:
|
Ok, I found out the problem. It is because inside my package.json I have |
No, because that wouldn't work once you specify multiple targets (which could overwrite themselves with same distdir) |
Is it possible to say parcel to ignore all the settings in package.json? |
To ignore "common target fields" like the {
"main": "dist/lib.js",
"targets": {
"main": false
}
} |
Right but it is still base on package.json. In general your opiniated approach to make the config base on package.json make lot of sense and is easy. Maybe parcel is then not the right bundler to make such things :-/ but since I really like it, I still give a try. (by the way, big thx for the super fast answer, you are amazing) |
If you are using Parcel 2 via the API (https://parcel2-docs.now.sh/features/parcel-api/), you can pass a |
Oooh god i was searching for this docs :-D I was starting to look at |
Apologies if this is already supported--I couldn't find it after a brief documentation check.
I'm using Parcel to bundle dependencies for an Elixir/Phoenix app. This involves bundling JS/CSS out of an assets/ folder, wherein package.json/yarn.lock are found, into ../priv/static. For Parcel 1, I can add
--out-dir ../priv/static
and things work fine. Under 2, there doesn't appear to be any obvious way to put things in a folder other than dist/.Granted, I can copy files from that destination manually, but my package.json scripts are already a bit long. Any chance we can have
--out-dir
, or documentation for its current equivalent?Thanks for Parcel.
The text was updated successfully, but these errors were encountered: