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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parcel serve
and watch
commands ignoring target distDir configuration
#9096
Comments
I'm seeing the same problem with parcel 2.10.3. With a config in |
This is because of https://parceljs.org/features/development/#development-target |
@mischnic I鈥檓 not sure what you mean. Do you mean that with I currently have {
"targets": {
"default": {
"distDir": "./output"
}
}
} in my package.json but this default target isn鈥檛 used with |
What that linked section is trying to say: If you don't have any targets (but a browserslist setting), you can use If you do have explicit targets (regardless of their names), use them instead for |
Thanks for the explanation @mischnic. It seems that the target doesn't apply (at least for Edit: running |
I can confirm that this is still an issue with |
馃悰 bug report
When running
parcel serve
orparcel watch
commands, along with the--target
parameter, the configuration for the target's distribution directory (either 'dist/<target_name>' or as per the distDir param under the target) is ignored, and the output is sent entirely to the default 'dist' directory.This is particularly noticeable when multiple targets are specified, in which case the outputs for all targets are sent to the same 'dist' directory'.
Note that when running
parcel build
the problem does not exist and correct directories are observed.This is similar, if not the same issue as the one closed here for inactivity: #8105
馃帥 Configuration (.babelrc, package.json, cli command)
.babelrc N/A
parcel serve --target dev
馃 Expected Behavior
Output for this command should be directed to:
/dist/dev/...
馃槸 Current Behavior
Output for this command is:
/dist/...
馃敠 Context
Trying to create simple (low config) tasks to help me develop locally
馃捇 Code Sample
(https://github.com/bladeski/b-links/tree/parcel-bug)
馃實 Your Environment
The text was updated successfully, but these errors were encountered: