How can I access target name in a Parcel plugin? #8252
Unanswered
melted-away
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I've come up with a solution: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Parcel for a web extension project. I've defined 2 targets in
package.json
file:I want to write a transformer (or any plugin which does the trick) to combine a
manifest.json
andmanifest.{targetName}.json
before collecting manifest dependencies.So far I have learned that
asset.env
gives some info about the current environment. But I'm looking for a way to get the target name. Is there any way for it?I've also ask the question on Stackoverflow:
https://stackoverflow.com/questions/72722727/how-can-i-access-target-name-in-a-parcel-plugin
Beta Was this translation helpful? Give feedback.
All reactions