distDir inside target does not get honored #6778
Replies: 3 comments 3 replies
-
Does it behave the same when package.json is in the root directory (instead of src)? I'm not used to seeing the package.json file anywhere but the root directory. |
Beta Was this translation helpful? Give feedback.
-
You can add |
Beta Was this translation helpful? Give feedback.
-
Just put config in
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Devs & Community,
I am getting started with Parcel
2.0.0-rc.0
with a series of tests to verify if the workflow will be inline with my team's needs and ran into something that I was looking to get your help on. Enjoying the Parcel experience so far and am excited to get into more features soon. Thanks in advance.❓
I am experimenting with targets, and I'd like to take advantage of the
distDir
option. I have been able to use this successfully when it is not in the targets object, but when I place inside the targets object, the defaultdist
directory is created instead. I am running seeing this when I run thestart
command inside the package.json (the dev build).🎛 Configuration
package.json
📁 Directory & File Structure
🤔 Expected Behavior
Bundled files should be outputted into the
build
directory😯 Current Behavior
Bundled files are outputted in the
dist
directory🔦 Context
The option
distDir
under frontend target is ignored.🌍 Your Environment
Parcel: 2.0.0-rc.0
Node: v16.8.0
Yarn: yarn-3.0.1.cjs
Operating System : macOS current
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions