parcel generating multiple output files 馃

Created on 1 Mar 2019  路  4Comments  路  Source: parcel-bundler/parcel

馃悰 bug report

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

parcel src/App.js src/App.css --out-dir ../../resources/static/dashboard --out-file dashboard

馃 Expected Behavior

I am expecting to see the following files:
dashboard.css
dashboard.js

馃槸 Current Behavior

currently I see:

App.css
App.js
dashboard.css
dashboard.js

App.css & dashboard.css have the same content

Both the JS file are different

contents of generated App.js : https://pastebin.com/jc6Sj5AL
contents of generated dashboard.js : https://pastebin.com/5dq9c1Y5

馃實 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | latest
| Node | latest
| npm/Yarn | npm
| Operating System | mac

Bug Stale

Most helpful comment

I am expecting to see the following files:
dashboard.css
dashboard.js

You can't use the --out-file flag with multiple entrypoints. But the output should still not 4 files instead of 2...

All 4 comments

I am expecting to see the following files:
dashboard.css
dashboard.js

You can't use the --out-file flag with multiple entrypoints. But the output should still not 4 files instead of 2...

I get these files:

App.css
App.css.map
App.js
dashboard.js
dashboard.js.map

You can't use the --out-file flag with multiple entrypoints. But the output should still not 4 files instead of 2...

It works perfectly, I don't really mind this bug to be called a feature!
(apart from the two extra files, which I don't know what they are generated for)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

termhn picture termhn  路  3Comments

jzimmek picture jzimmek  路  3Comments

devongovett picture devongovett  路  3Comments

davidnagli picture davidnagli  路  3Comments

dsky1990 picture dsky1990  路  3Comments