Answer the question
In order to leave comments, you need to log in
Variable value depending on the mode?
Hello. And do not tell me how to do it correctly so that production has its own variable value, and dev has its own. And it’s better that a variable is not built in the production bundle. I'm using default webpack from @cli 3.
Thanks.
Answer the question
In order to leave comments, you need to log in
so that production has its own variable value
DefinePlugin makes it possible to pass variables from webpack to the global scope
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question