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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

--dist-dir not worked #6211

Closed
Ivaneyko opened this issue Apr 30, 2021 · 2 comments
Closed

--dist-dir not worked #6211

Ivaneyko opened this issue Apr 30, 2021 · 2 comments

Comments

@Ivaneyko
Copy link

馃悰 bug report

I try to create build in build folder with the command parcel build ./src/index.html --dist-dir public. But it anyway creates files inside the project root

馃帥 Configuration (.babelrc, package.json, cli command)

{
  "name": "test-parcel",
  "version": "1.0.0",
  "description": "Test parcel@next",
  "main": "index.html",
  "author": "Serhiy Ivaneyko",
  "license": "MIT",
  "devDependencies": {
    "parcel": "^2.0.0-beta.2"
  },
  "scripts": {
    "start": "parcel serve ./src/index.html",
    "build": "parcel build ./src/index.html --dist-dir public"
  },
  "browserslist": "> 0.2%"
}

馃 Expected Behavior

Expected to see all files inside build/ folder

@mischnic
Copy link
Member

Remove this line:

"main": "index.html",

We'll warn/throw an error in this case at some point: #6110

@Ivaneyko
Copy link
Author

@mischnic thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants