Skip to content

NODE_ENV #2714

Answered by milesje
milesje asked this question in Q&A
Jan 13, 2021 · 4 comments · 5 replies
Discussion options

You must be logged in to vote

OK, I found a workaround (maybe a solution).... I can add a rollup plugin to @web/dev-server to inject the process.env.NODE_ENV, but this really seems like a hacky way of doing things. Also when bundling with rollup I also have to add this same plugin to get it to inject the process.env.NODE_ENV.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@urugator
Comment options

Comment options

You must be logged in to vote
4 replies
@danielkcz
Comment options

@milesje
Comment options

@milesje
Comment options

@milesje
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by milesje
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants